This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Focus Problem 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 "Focus Problem" Watch "Focus Problem" New topic
Author

Focus Problem

Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

I posted the following question to the SUN java developers' forum.
In my opinion I did not receive an answer to my question.
Basically my question is:
How, in a java swing stand-alone application, can I reach a situation where none of the GUI components in my application window can receive the keyboard focus?
I know that one way to achieve this is to invoke "setFocusable(false)" for each GUI component that can accept keyboard focus.
What other ways are there?
Link to the question I posted on SUN java forums:

http://forums.sun.com/thread.jspa?threadID=5417705
 
Consider Paul's rocket mass heater.
 
subject: Focus Problem
 
Similar Threads
capturing all keystroke??
How to capture keyboard event if component does not have focus question
keylistener in a custom component
Unfocusable and not resizable
create an on screen keyboard that run on linux