Do I need Suntoolkit.realSync after SwingUtilities.invokeAndWait()?

193 Views Asked by At

To be 100 % sure that the java application has refreshed everything on the screen do I need to call

SunToolkit.realSync()

after

SwingUtilities.invokeAndWait() ?

I'm creating my GUI inside SwingUtilities.invokeAndWait().

I would like to know if invokeAndWait() guarantees the refreshing same as realSync() guarantees.

0

There are 0 best solutions below