32 |
import java.awt.BorderLayout; |
import java.awt.BorderLayout; |
33 |
import java.awt.Component; |
import java.awt.Component; |
34 |
import java.awt.FlowLayout; |
import java.awt.FlowLayout; |
|
import java.awt.Window; |
|
35 |
import java.awt.event.ActionEvent; |
import java.awt.event.ActionEvent; |
36 |
import java.awt.event.ActionListener; |
import java.awt.event.ActionListener; |
37 |
import java.awt.event.KeyEvent; |
import java.awt.event.KeyEvent; |
97 |
* 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 |
98 |
* 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 |
99 |
* 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. |
|
100 |
*/ |
*/ |
101 |
public TranslationAskJDialog(Component owner, |
public TranslationAskJDialog(Component owner, |
102 |
final JComponent... translationEditJPanels) { |
final JComponent... translationEditJPanels) { |
103 |
super(SwingUtil.getParentWindow(owner)); |
super(owner); |
104 |
setComponents(translationEditJPanels); |
setComponents(translationEditJPanels); |
105 |
} |
} |
106 |
|
|
116 |
* Using this constructor, you have to call setComponents afterwards. |
* Using this constructor, you have to call setComponents afterwards. |
117 |
*/ |
*/ |
118 |
public TranslationAskJDialog(Component owner) { |
public TranslationAskJDialog(Component owner) { |
119 |
super(SwingUtil.getParentWindow(owner)); |
super(owner); |
120 |
} |
} |
121 |
|
|
122 |
/** |
/** |