title: How to remove JLabels?
body: <p>Just how you add JLabels, JTextFields, JButtons by doing this add(label1); add(button1);</p>
  
  <p>how to remove?</p>
  
  <p>I have a button that will remove a particular JTextField.</p>
  
  <p>The button:</p>
  
  <pre><code>thehandler3 handler3 = new thehandler3();
  button3.addActionListener(handler3); // first x button
  
  private class thehandler3 implements ActionListener{
      public void actionPerformed(ActionEvent event){
  
          remove(field1);
  
      }}
  </code></pre>
  
  <p>It is not working. I get no compliation or execution error. </p>