25 |
* |
* |
26 |
* Contributors: |
* Contributors: |
27 |
* Martin O. J. Schmitz - initial API and implementation |
* Martin O. J. Schmitz - initial API and implementation |
28 |
* Stefan A. Krüger - additional utility classes |
* Stefan A. Tzeggai - additional utility classes |
29 |
******************************************************************************/ |
******************************************************************************/ |
30 |
package skrueger.swing; |
package skrueger.swing; |
31 |
|
|
44 |
import javax.swing.JButton; |
import javax.swing.JButton; |
45 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
46 |
import javax.swing.JDialog; |
import javax.swing.JDialog; |
|
import javax.swing.JOptionPane; |
|
47 |
import javax.swing.JPanel; |
import javax.swing.JPanel; |
48 |
import javax.swing.JRootPane; |
import javax.swing.JRootPane; |
49 |
import javax.swing.KeyStroke; |
import javax.swing.KeyStroke; |
162 |
setTitle(SwingUtil.R("TranslationAskJDialog.Title")); |
setTitle(SwingUtil.R("TranslationAskJDialog.Title")); |
163 |
setModal(true); |
setModal(true); |
164 |
pack(); |
pack(); |
165 |
SwingUtil.centerFrameOnScreen(this); |
SwingUtil.setRelativeFramePosition(this, getParent(), .5, .5); |
166 |
} |
} |
167 |
|
|
168 |
public void setOptionalButtons(JButton... optionalButtons) { |
public void setOptionalButtons(JButton... optionalButtons) { |