Results 1 to 6 of 6
Thread: Create a shortcut
- 11-26-2008, 10:36 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
Create a shortcut
I've got a problem with a shortcut. In my program there's a list of books, and when I select a book there's a " Remove this book"-button. I need a shortcut to this removal-button. At first I solved it with Mnemonic, but thats no good. I dont want to press "alt+delete" to remove the selected book, I only want to press the "delete" button on the keyboard. Anyone knows how to create these type of shortcuts?
- 11-27-2008, 12:06 AM #2
Keyboard Shortcutsclass googlem extends amazingDaze
Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 11-27-2008, 11:57 AM #3
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
Been readin that one before, tho I cant get it to work, nor the example. But I'll give it another try. Ta
- 11-27-2008, 04:53 PM #4
What are the error messages?
Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 12-01-2008, 11:11 AM #5
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
I dont even get an error message. Been workin with accelerators now, but cant find out how to get it to work with no "ctrl+delete", just "delete". I think its something with the focus. Mabye I shouldnt try to bind my programmed button with the delete cmd, just get the selection in my list to get focus and then.. do something that deletes the item!?
- 12-02-2008, 12:29 AM #6
It's been awhile, but I remeber focus traversal for buttons. I had a giant switch nearly wrote once trying to write a keyboard handler - I remember it can be done, runs something along the lines of if event.typeof == keyEvent ( or whatever the sytax is ) then you can track along a switch working as many as you want.
I forgot where it is,....Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Similar Threads
-
System.out.println Shortcut
By AdamCCFC in forum New To JavaReplies: 23Last Post: 11-13-2011, 03:45 PM -
eclipse keyboard shortcut
By taurean in forum EclipseReplies: 1Last Post: 10-01-2008, 12:09 PM -
More than one KeyStroke (Shortcut) for a JMenuItem
By hannehomuth in forum Advanced JavaReplies: 0Last Post: 07-25-2008, 03:35 PM -
Undo shortcut malfunctioning.
By Eranga in forum NetBeansReplies: 0Last Post: 03-31-2008, 05:12 AM -
How to add a shortcut key from JTextArea
By sukatoa in forum Advanced JavaReplies: 2Last Post: 01-28-2008, 08:39 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks