This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all again! I'm using a Swing application and I noticed that "NextFocusableComponent" is being deprecated and replaced by the "FocusTraversalPolicy". Does anyone here know how does it work?? All I want is set an order for my controls when the TAB key is pressed. Thanks!!
Thanks for your reply! But in the Sun Java help pages there are not examples of it... :'( I was trying to avoid those eternal readings without examples. All I want is a little sample for changing focus between 3 JTextFields! Any ideas?
Joined: Jun 09, 2003
Here's something to play around with - it just reverses the 'normal' tab order i.e. bottom to top, but you can make it anything you want, in keyPressed()
Don't know if this is a 'reasonable' way to do it, or if there's any pitfalls doing it this way, so lots of testing required.