This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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