File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes keyboard button control in the application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "keyboard button control in the application" Watch "keyboard button control in the application" New topic
Author

keyboard button control in the application

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 542

Hi,

I have an application which contains many JComponents. I need to navigate through my application using key strokes. How to handle this? How to write the Listeners for this?
Atleast let me know how to get the name of the Jcomponent when it is focussed.

Thanks and Regards,
Narendranath


Cheers,
Naren (SCJP, SCDJWS and SCWCD)
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
If you are using j2se 1.4+ you can use things here: How to Use the Focus Subsystem

Also, you can use key bindings: How to Use Key Bindings

Other sources of information:
Enabling keyboard operation on the menu tutorial page.

Rules for Supporting Accessibility on the accessibility page.
[ December 22, 2004: Message edited by: Craig Wood ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: keyboard button control in the application
 
Similar Threads
CONVERTING an application to an applet
Localization
struts
Avoding deadlocks
Debugging a web application in Eclipse