I had an error:
I tried to load windows open-dialog :
Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
at java.awt.EventQueue.invokeAndWait(EventQueue.java:980)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
at processing.core.PApplet.selectFileImpl(PApplet.java:3799)
at processing.core.PApplet.selectOutput(PApplet.java:3791)
at TicTacToe_4.SaveFile(TicTacToe_4.java:968)
at TicTacToe_4.CheckButtonsOfArray(TicTacToe_4.java:658)
at TicTacToe_4.mouseReleased(TicTacToe_4.java:609)
at processing.core.PApplet.handleMouseEvent(PApplet.java:1611)
at processing.core.PApplet.checkMouseEvent(PApplet.java:1641)
at processing.core.PApplet.mouseReleased(PApplet.java:1656)
at java.awt.Component.processMouseEvent(Component.java:6263)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
at java.awt.EventQueue.invokeAndWait(EventQueue.java:980)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
at processing.core.PApplet.selectFileImpl(PApplet.java:3799)
at processing.core.PApplet.selectOutput(PApplet.java:3791)
at TicTacToe_4.SaveFile(TicTacToe_4.java:968)
at TicTacToe_4.CheckButtonsOfArray(TicTacToe_4.java:658)
at TicTacToe_4.mouseReleased(TicTacToe_4.java:609)
at processing.core.PApplet.handleMouseEvent(PApplet.java:1611)
at processing.core.PApplet.checkMouseEvent(PApplet.java:1641)
at processing.core.PApplet.mouseReleased(PApplet.java:1656)
at java.awt.Component.processMouseEvent(Component.java:6263)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)