I have created two jTextFields in a MainGUI class in netbeans. I have a button which starts disabled. It should only become enabled when the textfields have been updated, say length > 1.
I know I need to implement DocumentListeners to do this, but I'm not sure how I can go about doing this. I have looked at the tutorial on sun's website and the code provided but left me a little confused. I am unclear as to where the code should go seeing as I am using netbeans and much of the code defining the text fields has already been defined, nor do i know if it is possible to define through Netbeans' interface.
I was thinking maybe I have to create a textField ActionPerformed method and put the code in there, although I am unsure.