Hi!
In my 'if' statement I'm wanting to say that if the following three textField are not an empty string then it must execute the statements that I've stipulated. The problem is I keep getting an error in my 'if' statement.
My code looks as follows:
if(loanField3 != "" && loanField4 != "" && loanField5 != "")
the error it gives me is 'incomparable types: javax.swing.JTe xtField and java.lang.Strin g
In my 'if' statement I'm wanting to say that if the following three textField are not an empty string then it must execute the statements that I've stipulated. The problem is I keep getting an error in my 'if' statement.
My code looks as follows:
if(loanField3 != "" && loanField4 != "" && loanField5 != "")
the error it gives me is 'incomparable types: javax.swing.JTe xtField and java.lang.Strin g
Comment