Results 1 to 2 of 2
  1. #1
    Wx! is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default Need help in returning the action of keystrokes.


    I was wondering is there was a method that allows the returning of an action mapped to a keystroke.

    For Example, if the "return" key is pressed, the action of jumping to a new line will be replicated as well.


    P.S. Please let me know if i placed this under the wrong sub-forum. I'm new.:)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    Your question is not at all clear. Recommended reading:
    How To Ask Questions The Smart Way

    The AWT/Swing forum might have been a better choice.
    AWT / Swing - Java Forums

    You can get the Action from the ActionMap, but I fail to understand why you would ever want to do the work of key binding in your own code?


Similar Threads

  1. Help with returning
    By Da1dmoney in forum Eclipse
    Replies: 3
    Last Post: 12-15-2010, 02:38 AM
  2. Replies: 3
    Last Post: 08-19-2010, 08:27 AM
  3. Send Keystrokes from Java to Notepad
    By ramyal in forum AWT / Swing
    Replies: 3
    Last Post: 02-18-2010, 06:09 PM
  4. Send keystrokes to iframe
    By nloding in forum New To Java
    Replies: 3
    Last Post: 08-29-2008, 05:06 PM
  5. Showing how to add Actions for KeyStrokes
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 04-23-2008, 08:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts