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 REG: Focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "REG: Focus" Watch "REG: Focus" New topic
Author

REG: Focus

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
hi,
i want to navigate or change focus from one button to other using the direction keys. How can i do this can anybody please help.
Thanks and regards
In Advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

Try using KeyListeners, and if that does not work key bindings.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Please use real words when posting to the forums. Abbreviations such as "REG" in place of whatever it is supposed to mean only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: REG: Focus
 
Similar Threads
change the focus to the new tab
Question on Thread/sychronized
transferring focus to previous component.
Can i see i a field have focus !
focus() function