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 problem using inputverifier while using multiple internalframes 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 "problem using inputverifier while using multiple internalframes" Watch "problem using inputverifier while using multiple internalframes" New topic
Author

problem using inputverifier while using multiple internalframes

sudeep dhonde
Greenhorn

Joined: Sep 05, 2008
Posts: 1
What should be the behavior of an InputVerifier if you are transfering focus directly to a component in a differnet FocusCycleRoot? For example, I have an application frame (JFrame) in which multiple applications can be running (JInternalFrames). If I have focus on a field in one application, and switch to another application (ie focus xfers to a different focus cycle root - JInternalFrame) should the InputVerifier be triggered?

What happens is the InputVerifier gets triggered and fails (on bad input), the new JInternal frame is displayed on top of the old one, focus appears to transfer to the first component in the new app(it has a cursor), but when you type the component with the failed input verifier recieves the input. If you hit tab from the 2nd app, focus xfers to the next field, and it behaves normally after that. It's somewhat like the two fields are both sharing/fighting for the focus initially.

I would think that xfering focus to a different focus cycle should skip the input verifier. Because when you return to the original focus cycle, the focus will return to the field that had it before.

Any thoughts?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem using inputverifier while using multiple internalframes
 
Similar Threads
InputVerifier
How to close JOptionPane Dialog box & come parent frame??
need help in applying inputverifer to jtextfield
Input verification for Host name (IP)
Row validation in a table