Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class WorkAround4845341

com.gentleware.services.util.WorkAround4845341

public class WorkAround4845341


Workaround Java WebStart Bug #4845341 - Force Integration.
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 dialog will be forced to YES.

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.

History: Version 1.0, 1.1, 1.2 Martin Miller Dispose the Desktop Integration Windows if detected.

Version 1.3 Daniel Bridenbecker Don't dispose the window, but answer it by selecting YES automatically.

The instructions below talks about starting the workaround just before you start your login dialog. This does give the user a change to answer the question, but if you start it right away, you have the opportunity to have the dialog barely appear.

Version 1.4 Martin Miller Commented out the dispose, since answering the JDialog will dispose it.

Authors:
Daniel Bridenbecker
Version:
1.4 2004-01-07


 Inner Classifier Summary
  WorkAround4845341.DesktopIntegrationKiller
This EventQueue looks for WindowsEvents about the Desktop Integration Window. 
arrow_up
 

 Attribute Summary
private DesktopIntegrationKiller  dik
 
private boolean  shutdown
 
private static long  timeToLive
 
arrow_up
 

 Constructor Summary
public   WorkAround4845341()
 
arrow_up
 

 Method Summary
public void   run()
 
public void   shutdown()
 
arrow_up
 

Tagged Values
static false
 

 Inner Classifier Detail

WorkAround4845341.DesktopIntegrationKiller

 WorkAround4845341.DesktopIntegrationKiller

This EventQueue looks for WindowsEvents about the Desktop Integration Window.

If an event about that window is intercepted, the window will be answered to YES.  

arrow_up
 Attribute Detail

dik

private DesktopIntegrationKiller dik

arrow_up


shutdown

private boolean shutdown

arrow_up


timeToLive

private static long timeToLive

arrow_up
 Constructor Detail

WorkAround4845341

public WorkAround4845341 WorkAround4845341()

Returns:
arrow_up
 Method Detail

run

public void run()

arrow_up


shutdown

public void shutdown()

arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.