Workaround Java WebStart Bug #4845341.
Your code might need to be signed to have access to the
EventQueue.
The workaround is activated for 8 seconds if Java WebStart 1.4.2
is detected. After 8 seconds it will deactivate itself if it is
still active. In that time frame, if a WindowEvent about the
Desktop Integration Window is intercepted, the window will be disposed.
Instructions:
// Declaration
private WorkAround4845341 wa;
// Just before showing up your login dialog:
wa = new WorkAround4845341();
// Before disposing your login dialog, we need to make sure that we
// poped out our EventQueue, in case it is still active. We don't want
// our thread to pop out another EventQueue that could be installed on
// the EventQueue stack when your app continue to initialize itself.
wa.shutdown();
Disclaimer:
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. USE IT AT YOUR OWN RISKS.