Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this is bug in jdk 1.5 ??

 
Amol Juvatkar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java tries to make this easy for us with the InputVerifier class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic