title: Java package to select text in another program
body: <p>I found some stuff about this for C#, but I do not see anything for java:</p>
  
  <p>I need to be able to select and copy text in another program on Windows using java. This will be on the same system with user logged in, not over the web. My two questions are: </p>
  
  <p>Is this considered ok thing to do in programming, as I can see potential for abuse, where people can copy passwords this way?</p>
  
  <p>And, is there a package that already exists in Java to do this?</p>
  
  <p>In other words: I need java software equivalent of "click into active text window" "Ctrl-A" "Ctrl-C", and then I need to work with that text.</p>
  
  <p>Thanks, complete newbie here,</p>