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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -