I have an JOptionPane inside of my switch statement, but if you take more than a few seconds to enter your input, the program stops responding. Why does this happen? Is there a workaround?
switch(selection){
case 60:
brickSelection = 1;
break;
case 61:
brickSelection = 2;
break;
case 62:
brickSelection = 3;
break;
case 63:
fileName = JOptionPane.showInputDialog(null, "What would you like to call
your level?","Save Level",3);
break;
case 64:
sbg.enterState(GameStart.MENU);
break;
}