title: How to set the previous jframe visible when current jframe is disposed
body: <p>I am making a Java gui project and it consists of two frames.</p>
  
  <p>The problem is that when I call the secondframe from the firstframe, I have set it such that the firstframe visibility is set to false. The problem is how do I make the firstframe visible again by using a button from the second frame.</p>
  
  <p>should i ditch this method and create a new jpanel instead??? Does jpanel have similar capabilities as jframe?</p>