Michael Dunn wrote:firstly test whether the textfield is empty.
if so, display an info message
else, proceed with the rest of the method
Ok.. I think use the wrong thing (==) for the
string comparison. I changed it to
and it works fine.. :D
What the differrent of using
Or
as for checking if JTextField is empty or not??
And if i want to check the JButton color first, is it possible? So, just the white button colored that show the input. I know using BLACK color is already enough to make the input can't be seen, but not if i change it to yellow.. Something like this maybe??