I am making on-screen keyboard in java. All what i want to know is how to get focus into the notepad or any other typing point , I mean when i press a key it type it into the typing point like a keyboard do. If any one know any thing about this please help me. Any hint .... I will be thankful to you.
Majestics
84
Posting Pro
Recommended Answers
Jump to Post>I am making on-screen keyboard in java.
This makes sense>All what i want to know is how to get focus into the notepad or any other typing point , I mean when i press a key it type it into the typing point like a keyboard do.
This …
Jump to PostMaybe you can use the java.awt.Robot class. This was intended for automating tests of a GUI, and allows you to post mouse and keyboard events directly onto the host operating system's event queue.
http://java.sun.com/j2se/1.6.0/docs/api/java/awt/Robot.html
All 9 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Majestics
84
Posting Pro
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Majestics
84
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Majestics
commented:
Great Help
+2
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Majestics
84
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Majestics
84
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.