Focus issue

Hi,

I have a component which is made up of some sub components. The main component is in a dialog that has a FocusTraversalPolicy that contains the main component, but the main component is just really a container containing sub components that are visible. If the user clicks on the component, the sub component is the one that has order. So when I click on the tab key, this sub component won't be in the FocusTraversalPolicy, and the focus won't go onto the next component.

Any solution to this?

J

[528 byte] By [justinlawlera] at [2007-11-27 2:20:35]
# 1

Don't understand the problem. By defaults components added to a Container handle focus traversal correctly. If you are changing the FocusTraversalPolicy then you have a bug in your code and I'm not sure how you expect us to help.

[url http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html]How to Use the Focus Subsystem[/url]

camickra at 2007-7-12 2:22:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
thanks. Just reading up on how it works now. Looks like a bug in our own focus traversal policy alright.
justinlawlera at 2007-7-12 2:22:05 > top of Java-index,Desktop,Core GUI APIs...