Grabbing text from a Java window

D

David W. Thomas

Since I'm a newbie at Java programming and very experienced at C++
programming, I need some help on this issue. I would like a short program
(as much detail as a responder has time for) in Java to grab the text from
another Java window (selecting that window by mouse or some reasonable
method) and put the text in one of three places: either 1) Windows
clipboard, 2) a file, or 3) an java edit window. The Java window may not
allow hilighting of text by a user.

Thanks in advance.
 
P

Paul Lutus

David said:
Since I'm a newbie at Java programming and very experienced at C++
programming, I need some help on this issue. I would like a short program
(as much detail as a responder has time for) in Java to grab the text from
another Java window (selecting that window by mouse or some reasonable
method) and put the text in one of three places: either 1) Windows
clipboard, 2) a file, or 3) an java edit window. The Java window may not
allow hilighting of text by a user.

To begin your homework assignment, look up Java clipborad examples on
Google.
 
D

David W. Thomas

Ok, thank you. That did provide example code for dealing with the
clipboard.

The hard part is grabbing text from a Java window in another app/applet/...,
especially if its not an edit window. I haven't been successful at
formulating the right search string for google.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top