This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

problem using inputverifier while using multiple internalframes  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!