• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Keyboard shortcuts

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much Paul and Campbell. I'll do some reading on this now.
 
Campbell Ritchie
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a pleasure
 
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic