problem using inputverifier while using multiple internalframes
posted 7 years ago
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.