Checking to see if a JTextField is empty.
Ok I'm trying to check whether or not a JTextField is empty, mainly because I'm trying to make it so if you don't enter any information in the TextField it ignores it from my formula.
However after scouring google and anything I can think of in the API I have come up with nothing. I also tried
lower.getText() != ""
Is there a way to check and see if anything is entered into a JTextField?
lower.getText() != null
Edit: I'm an idiot. I just used .equals to solve that problem. I thought of that as soon as I hit post. :facepalm: