java - SwingUtilities.invokeLater ... is there an invokeNow? -
Where I was trying to add objects to my canvas but SwingUtilities.invokeLater did not really do its job yet . I really need to be able to connect things with this JPNL reliably, but I am running in this error. Is there a better option for the code below?
Private Zero StartGram () {SwingUtilities.invokeLater (Public Running Run) {gameFrame = new InvadersGameFrame ();}}); }
See this:
Reason To execute DoRun.run () synchronously on the ARWT event sending thread. All pending AWT events have been processed on this call block and (then) doRun.run () returns This method should be used when an application thread needs to update the GUI.
Comments
Post a Comment