13 |
|
|
14 |
import javax.swing.AbstractAction; |
import javax.swing.AbstractAction; |
15 |
import javax.swing.Action; |
import javax.swing.Action; |
16 |
|
import javax.swing.BorderFactory; |
17 |
import javax.swing.Box; |
import javax.swing.Box; |
18 |
import javax.swing.JButton; |
import javax.swing.JButton; |
19 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
156 |
SwingUtil.centerFrameOnScreen(this); |
SwingUtil.centerFrameOnScreen(this); |
157 |
Box box = Box.createVerticalBox(); |
Box box = Box.createVerticalBox(); |
158 |
for (JComponent panel : translationEditJPanelsOrJustComponents) { |
for (JComponent panel : translationEditJPanelsOrJustComponents) { |
159 |
|
panel.setAlignmentX(java.awt.Component.LEFT_ALIGNMENT); |
160 |
|
panel.setBorder( BorderFactory.createEmptyBorder(5, 6, 5, 6)); |
161 |
box.add(panel); |
box.add(panel); |
162 |
|
|
163 |
} |
} |
164 |
JPanel cp = new JPanel(new BorderLayout()); |
JPanel cp = new JPanel(new BorderLayout()); |
165 |
cp.add(box, BorderLayout.CENTER); |
cp.add(box, BorderLayout.WEST); |
166 |
cp.add(getButtons(), BorderLayout.SOUTH); |
cp.add(getButtons(), BorderLayout.SOUTH); |
167 |
setContentPane(cp); |
setContentPane(cp); |
168 |
|
|
169 |
setTitle(RESOURCE.getString("translation_dialog_title")); // i8n |
setTitle(RESOURCE.getString("translation_dialog_title")); // i8n |
170 |
setModal(true); |
setModal(true); |
171 |
pack(); |
pack(); |