cancelable = cancelable;
if(instance == null)
if(owner instanceof Frame)
{
instance = new MyWaitingWindow((Frame)owner);
isInstanceNull = false;
} else
if(owner instanceof Dialog)
{
instance = new MyWaitingWindow((Dialog)owner);
isInstanceNull = false;
} else
{
return null;
}
if(instance.thread == null)
{
instance.thread = new Thread(new Runnable() {
public void run()
{
int steps;
MyWaitingWindow.instance;
MyWaitingWindow.instance.messageLabel.setText(MyWaitingWindow.message);
GuiUtil.setWindowLogicSize(MyWaitingWindow.instance, 400, 100);
GuiUtil.centerWindow(MyWaitingWindow.instance);
SwingUtilities.invokeLater(new Runnable() {
public void run()
{
try
{
MyWaitingWindow.instance.setVisible(true);
}
catch(Exception e) { }
}
});
steps = 0;
_L2:
MyWaitingWindow.instance.validate();
MyWaitingWindow.instance.repaint();
MyWaitingWindow.instance.getContentPane().validate();
MyWaitingWindow.instance.getContentPane().repaint();
if(MyWaitingWindow.cancel)
break; /* Loop/switch isn't completed */
try
{
label0:
{
Thread.sleep(500L);
if(steps != 5)
break MISSING_BLOCK_LABEL_144;
synchronized(MyWaitingWindow.lock)
{
if(!MyWaitingWindow.isInstanceNull)
{
MyWaitingWindow.instance;
MyWaitingWindow.instance.messageLabel.setText(MyWaitingWindow.message);
steps = 0;
break label0;
}
}
break; /* Loop/switch isn't completed */
}
}
catch(InterruptedException ex)
{
MyWaitingWindow.setCancel(true);
}
continue; /* Loop/switch isn't completed */
abyte0;
JVM INSTR monitorexit ;
break MISSING_BLOCK_LABEL_212;
exception;
throw exception;
synchronized(MyWaitingWindow.lock)
{
if(!MyWaitingWindow.isInstanceNull)
{
MyWaitingWindow.instance.messageLabel.setText(MyWaitingWindow.instance.messageLabel.getText() + ".");
break MISSING_BLOCK_LABEL_200;
}
}
break; /* Loop/switch isn't completed */
abyte1;
JVM INSTR monitorexit ;
break MISSING_BLOCK_LABEL_212;
exception1;
throw exception1;
steps++;
continue; /* Loop/switch isn't completed */
if(true) goto _L2; else goto _L1
_L1:
if(!MyWaitingWindow.isInstanceNull)
MyWaitingWindow.instance.dispose();
return;
}
});
instance.thread.start();
}
return instance;