45 |
* @return |
* @return |
46 |
*/ |
*/ |
47 |
protected DIALOG bringup(DIALOG dialog) { |
protected DIALOG bringup(DIALOG dialog) { |
48 |
|
if (dialog == null){ |
49 |
|
// The dialog creation may have been cancelled |
50 |
|
return null; |
51 |
|
} |
52 |
if (!dialog.isVisible()) |
if (!dialog.isVisible()) |
53 |
dialog.setVisible(true); |
dialog.setVisible(true); |
54 |
dialog.toFront(); |
dialog.toFront(); |
128 |
} else { |
} else { |
129 |
|
|
130 |
dialog = factory.create(); |
dialog = factory.create(); |
131 |
|
if (dialog.isDisposed) { |
132 |
|
// The creation of the Dialog may have been cancelled for some reason |
133 |
|
return null; |
134 |
|
} |
135 |
dialogCache.put(key, dialog); |
dialogCache.put(key, dialog); |
136 |
dialog.setVisible(true); |
dialog.setVisible(true); |
137 |
dialog.toFront(); |
dialog.toFront(); |