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

JTextField text validation

 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I have 3 JTextFields and I want to test to see if anything has been entered into them. I wrote the following code but it doesn't work as I expect:

What am I doing wrong?
Thank you,
Frank
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I figured it out... I can solve my problem by using the compareTo function in the String class.
Sorry for this post...
Frank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic