I have 4 jTextFields that I save the input to a file once a submit button is pressed. I want to be able to keep the submit button disabled until each field is at least not null. Where can i put something like this
if(jTextField1 == null || jTextField2 == null || jTextField3 == null || jTextField4 == null){
jButton2.setEnabled(false);
}
so that the program will enable/disable the button live. Like once the last field even has 1 character in it I want it to be enabled?