Mar 15, 2001 #1 KryptoS Programmer Feb 7, 2001 240 BE Hello, how can I control if a textfield is empty or not?? please hurry!!!!! thanx Me
Mar 15, 2001 1 #3 globos Programmer Nov 8, 2000 260 FR Hi, I think it would work better, if you do something like that (in Swing) : JTextField textField = new JTextField (...); ... // Test if empty if (textField.getText ().length () == 0) //or if (textField.getText ().equals ("") ... Bye -- Globos Upvote 0 Downvote
Hi, I think it would work better, if you do something like that (in Swing) : JTextField textField = new JTextField (...); ... // Test if empty if (textField.getText ().length () == 0) //or if (textField.getText ().equals ("") ... Bye -- Globos