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 n
use the keyPressed listener for each textfield to run your check wherever the text of a textfield is changed.
the method to disable the buttons is setEnabled(false);
Note that you will have to make the buttons dissabled when the program starts if your textfiends are empty at that time (listeners won't run)