hemanthjava 0 Light Poster

I am using FocusTraversalPolicy policy in my Swing Project for tab out functionality. In some screens some componenets(combo box , textbox etc) are disabled in between some enabled components. So when i tab out from those which are enabled it loses focus when i tab out as that component after was disabled in that screen. So i started using if else loops to check which is the next enabled component in that order and set focus on it.

Is there a way in Swing builtin to tab out to the next focusable component in that order specified or should i manually do it for each component( if else checks). This code should apply to both Component after and component before functionality.

Regards,
Hemanth
( http://www.freejavaguide.com }

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.