title: Multiple Jtextfields to be filled before Jbutton enable
body: <p>Hi I badly need some help I already search about Jtextfield to be filled before jbutton enables, DocumentListener most people use to determined if Jtextfield is being populated. I tried DocumentListener and it works but all I want is all Jtextfield must be not empty before the Jbutton enables here is my code.</p>
  
  <pre><code>     Ftext.getDocument().addDocumentListener(new DocumentListener() {
  
          @Override
          public void insertUpdate(DocumentEvent e) {
              change();
          }
  
          @Override
          public void removeUpdate(DocumentEvent e) {
              change();
          }
  
          @Override
          public void changedUpdate(DocumentEvent e) {
              change();
          }
  
          private void change(){
  
              if (Ftext.getText().equals("") &amp;&amp; Mtext.getText().equals("") &amp;&amp; Ltext.getText().equals("") &amp;&amp; Addtext.getText().equals("")) {
                  SaveButton.setEnabled(false);
              } else {
                  SaveButton.setEnabled(true);
              }
             }
      });
  </code></pre>