i have three separate codes for simple,multipart and attachment email in java..i have designed a GUI using netbeans in which i have a textpane for the body of the email and then couple of textfields which take the filename of the attachment(jTextField5) and the multipart email(jTextField6)..so what i basically am tryin to do is to get either one of my methods to go..i am using the specific if,else if structure to achieve my goal. But somehow the email doesnt go as specified. as far as i can guess is that it is not taking any 'xyz==null' values but taking xyz!=null values..could some please explain whats happening here??
sample code is below.in the code below..it is taking only the else if part no matter what.
if(jTextField5.getText()==null && jTextField6.getText()==null)