This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Is this is bug in jdk 1.5 ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Is this is bug in jdk 1.5 ??" Watch "Is this is bug in jdk 1.5 ??" New topic

Is this is bug in jdk 1.5 ??

Amol Juvatkar

Joined: May 16, 2005
Posts: 16
hello friends,
On lost focus of text field I am doing validation and Keeping focus in same field with error dialog if validation not succeeded.
Problem is that dialog displayed more than 1 times .
Point to note is that
> same code work fine with jdk 1.4,
> if I comment line textField.request Focus(), code works fine even in jdk 1.5 ,
but I need to keep focus in same field.

----------------------- code -------------------------------

What can be the solution ??
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Java tries to make this easy for us with the InputVerifier class.
Consider Paul's rocket mass heater.
subject: Is this is bug in jdk 1.5 ??
Similar Threads
Help with Chat software
JTextField listener to enable button action
Panel inside dialog box
regarding focus in swing
Creating and showing JFrame from another JFrame