java - How to make JFrame pause thread similar to how JOptionPane works -
I am making a game and whenever the player comes in contact with an enemy, give me a JFrame If you want to fight with the enemy, then pop up to ask, but when
JFrame pops up, the game continues in the background. I
JoyPoppenPennus , the thread pauses until the
joppenpane goes . How do I get a similar effect with a
JFrame
solution? Not using a Jeffreame - You are asking for a window that acts as a modal dialog - so Usage is a modal dialog, a JDILOG is accurate Note that this is the same as the postpane.
Comments
Post a Comment