Yes. Typically there will be only one Toolkit
for Toolkit.getDefaultToolkit
, but multiple EventQueue
s from Toolkit.getSystemEventQueue
(which from 1.2.2 you typically get permissions to call successfully). There is magic based on ThreadGroup
and ClassLoader
s on the stack to determine which EventQueue
to return.
Applets are partitioned dependent upon their origin and configuration. Exactly how this is done is implementation dependent.
Now, what you are probably seeing is an event queue for your applet and the secure context. The secure context handles the dialog boxes from the plugin itself. Accepting certificates and things like that. The secure context keeps these away from user code in your applet context.