title: Java Swing: dispose() a JFrame does not clear its controls
body: <p>I have a closeWindow() method which uses dispose() for the current JFrame to close down. When I show the window again, the controls (textboxes, lists, tables etc.) still have their previous values in place that were there when I dispose():d the frame... Why is that? Is there another way to completley close and clear a frame?</p>
  
  <p>This is the code that another JFrame uses to show the other window, am I doing something wrong here?</p>
  
  <pre><code>@Action
  public void showAddProductToOrderView() {
  
      if (addProductToOrderView == null) addProductToOrderView = new AddProductToOrderView(this);
      addProductToOrderView.setVisible(true);
  }
  </code></pre>