sudeep dhonde

Greenhorn
+ Follow
since Sep 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sudeep dhonde

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?
15 years ago