hiding joptionpane messagebox
in
Programming Questions
•
1 year ago
Is there a way to hide joptionpane message box. I want to hide this box each time the player dies and the game restarts. I don't wanna use controlP5 method to create message box. It is too much coding for nothing.
- void MsgBox() {
- javax.swing.JOptionPane.showMessageDialog(null, "<html>My Breakout Game Remix<br>INSTRUCTIONS<br> 1.Avoid hitting with the balls at all cost.<br> 2.If you die. It's game over.<br> 3.You will be asked for number of balls input, When you will die.Challenge yourself with more balls.");
- }
1