To add to the display work queue a Runnable
instance, or an instance of a subclass of Runnable
, you call the
invokeLater
class method of the SwingUtilities
class
found in the javax.swing
package:
SwingUtilities.invokeLater(runnable);