Highlighted text detection
If this is the wrong list for this post, let me know. I have a form having a mix of JTables, JTextAreas, and JTextFields. I want to know when a user highlightes/selectes text in any of them (to enable copy button). To select text a user can (click then shift click) or (double click) or (click and drag). Isn't there some way to detect highlighting with out multiple listeners? Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Send keystrokes with button press
I have an a Java app that I want to implement copy/paste menu items. The form has several textual/table components. Finding our what is selected and then locating where to paste it is brutal. But with no coding effort using key strokes Ctrl C and Ctrl V do the job. It would be ease to implement my menu items if they could send a Ctrl C or Ctrl V when selected. Does anyone know how to send keyboard Ctrl C to the app by, say, pressing a button in the same app. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
