Hi,
Im developing a game. When the human gets his turn i want to display a JFrame with some buttons.
So the game must wait until the user clicks on a button. Also i want to identify which button is clicked.
I read that JOptionPna gets any component as a parameter.I did the following.
but the coding of the my object is shown inside an input field.
MyFrame my=new MyFrame();
JOptionPane.showInputDialog(null,"test",my);
PLZ....... help me