What's new

Java Gui window close code?

  • Thread starter Flex Offender
  • Start date
  • Views 633
Flex Offender

Flex Offender

Enthusiast
Messages
323
Reaction score
17
Soo, I need this so that when an action initializes, (winning the level) the levels gui window will close, and the level select window will re open. and when you click a level to play, the level select will close and the level will open.

Basicly just switching between windows, but not minimizing. I could do this in VB, but anyone know the code for Java?

Thanks.
 
TheChillerCraft

ChillerCraft

Enthusiast
Messages
540
Reaction score
74
Soo, I need this so that when an action initializes, (winning the level) the levels gui window will close, and the level select window will re open. and when you click a level to play, the level select will close and the level will open.

Basicly just switching between windows, but not minimizing. I could do this in VB, but anyone know the code for Java?

Thanks.
If your using jPanels then you just do jForm or something like that... So jForm.remove("new jPanel") to remove the jPanel...! Does that help??????
 
Flex Offender

Flex Offender

Enthusiast
Messages
323
Reaction score
17
If your using jPanels then you just do jForm or something like that... So jForm.remove("new jPanel") to remove the jPanel...! Does that help??????

and is open to re open it? (and yes jforms and panels I am using.)
 
Top Bottom