As far as I know SwingUtilies.invokeLater (new runnab ())
is used It forces the ADT to do things that are defined in the Runnable
- object, but how can it be imagined? Normally the run
method in runnable
- the object is used to execute Java content in a new thread, but not here, because here Runnable
- Object calls only ADT
Runnabel with single interface running only one interface is (). Anyone with access to any runnable object can call this method. Threads do this. ADT does this; Executives do so; Your program can do this; It is just a conference; other software can use different conferences, say, the executives can call the callable object call.
Internally, the ADT has its own run method, which is in a loop, removes runnable objects from their queue and calls their run () method.
Comments
Post a Comment