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) { |