Skip to main content
added 2 characters in body; edited title
Source Link
Andrew Thompson
  • 169k
  • 42
  • 224
  • 441

Working with 2 or more java swing frames

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 classname.frameName.setVisible(false);

is this the correct solution  ?

Working with 2 or more java swing frames

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 classname.frameName.setVisible(false);

is this correct solution  ?

Working with 2 or more frames

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 classname.frameName.setVisible(false);

is this the correct solution?

Source Link
hudi
  • 16.6k
  • 48
  • 160
  • 266

Working with 2 or more java swing frames

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 classname.frameName.setVisible(false);

is this correct solution ?