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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -