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

    Default Need help in returning the action of keystrokes.

    Hi,

    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.

    Regards.

    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
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    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?

    db

Similar Threads

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