View Single Post
Old May 12th, 2006, 12:25 AM   #1
hemanth.balaji
Programmer
 
Join Date: May 2005
Posts: 54
Rep Power: 0 hemanth.balaji is an unknown quantity at this point
Send a message via Yahoo to hemanth.balaji Send a message via Skype™ to hemanth.balaji
Java Swing FocusTraversalPolicy

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
( url removed}

Last edited by big_k105; Jul 3rd, 2006 at 1:43 PM.
hemanth.balaji is offline   Reply With Quote