I created a 2 player game in a class, and I would like to make a pop-up that says "it is your turn" when it is a certain players turn. where would I put this?
Printable View
I created a 2 player game in a class, and I would like to make a pop-up that says "it is your turn" when it is a certain players turn. where would I put this?
I'm not sure what you mean by "where". Where in the code? Where on the screen? Where in the game? Something else?
Recommended reading: How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)