98 |
* This class handles the cancel button itself. You may still want to listen |
* This class handles the cancel button itself. You may still want to listen |
99 |
* to PROPERTY_APPLY_AND_CLOSE events. This dialog is modal. The dialog has |
* to PROPERTY_APPLY_AND_CLOSE events. This dialog is modal. The dialog has |
100 |
* to be set visible afterwards.<br/> |
* to be set visible afterwards.<br/> |
|
* |
|
|
* @param owner |
|
|
* A component of the GUI that this dialog is related to. If no |
|
|
* {@link Window} is passed, SwingUtil.getParentWindow(owner) is |
|
|
* called. |
|
101 |
*/ |
*/ |
102 |
public TranslationAskJDialog(Component owner, |
public TranslationAskJDialog(Component owner, |
103 |
final JComponent... translationEditJPanels) { |
final JComponent... translationEditJPanels) { |
104 |
super(SwingUtil.getParentWindow(owner)); |
super(owner); |
105 |
setComponents(translationEditJPanels); |
setComponents(translationEditJPanels); |
106 |
} |
} |
107 |
|
|
117 |
* Using this constructor, you have to call setComponents afterwards. |
* Using this constructor, you have to call setComponents afterwards. |
118 |
*/ |
*/ |
119 |
public TranslationAskJDialog(Component owner) { |
public TranslationAskJDialog(Component owner) { |
120 |
super(SwingUtil.getParentWindow(owner)); |
super(owner); |
121 |
} |
} |
122 |
|
|
123 |
/** |
/** |