title: Working with 2 or more frames
body: <p>I have about 3 frames in my java swing application. What it the correct way how to handle with these frames? I mean some pattern or something else. Now I have always one class which represent frame and one class for panel which is main in this frame. Now I have defined frames as static variable and when I wanna hide them I call 
  <code>classname.frameName.setVisible(false);</code></p>
  
  <p>is this the correct solution?</p>