• Post Reply Bookmark Topic Watch Topic
  • New Topic

Keyboard shortcuts  RSS feed

 
David Henstridge
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The project I would like to continue modifying is almost totally touch-screen and mouse command-based.

I would like to add a bunch of keyboard shortcuts to navigate about inside the running project.

(This is not to be confused with the oft-talked about keyboard shortcuts to help with your coding in Netbeans (Tools/Options/Keymap etc.).

Can someone tell me how I would go about adding this dearly needed functionality?

There are two problems that I now face:

1. Finding the specific code that is currently used to execute the touch-screen/mouse-based commands.
2. Knowing the code to add that would allow keyboard input for the command.
 
Paul Clapham
Sheriff
Posts: 22379
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's a Swing application then have a look at this tutorial: http://www.java2s.com/Tutorial/Java/0260__Swing-Event/0420__KeyStroke.htm

If it's something else, then it would help for us to know the context.
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does sound more like a GUI question so I shall try moving you to our GUIs forum. [edit]Sombody has already moved you thither.[edit] Swing tends to work well with key bindings (I think) so this tutorial might also be helpful.
 
David Henstridge
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much Paul and Campbell. I'll do some reading on this now.
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a pleasure
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!