I'm pretty sure you should invoke all swing-related statements on the AWT dispatch thread. Thus: JOptionPane.showMessageDialog("What is your name"), should be enclosed in SwingUtilities.invokeLater(new Runnable(){
public void run() { // put it here! }});
scarfulify 4 months ago
I'm pretty sure you should invoke all swing-related statements on the AWT dispatch thread. Thus: JOptionPane.showMessageDialog("What is your name"), should be enclosed in SwingUtilities.invokeLater(new Runnable(){
public void run() { // put it here! }});
scarfulify 4 months ago