|
@@ -106,13 +106,21 @@ public class SwingRestartDialog extends StandardDialog implements ActionListener
|
106
|
106
|
|
107
|
107
|
/** Layout Components. */
|
108
|
108
|
public void layoutComponents() {
|
109
|
|
- setLayout(new MigLayout("fill, wrap 2"));
|
|
109
|
+ setLayout(new MigLayout("fill, wrap 2, wmax " +
|
|
110
|
+ mainFrame.getSize().getWidth() + ", pack"));
|
110
|
111
|
|
111
|
|
- add(info, "grow, pushy, span 2");
|
|
112
|
+ add(info, "grow, pushx, span 2");
|
112
|
113
|
add(getLeftButton(), "split, right");
|
113
|
114
|
add(getRightButton(), "right");
|
114
|
115
|
}
|
115
|
116
|
|
|
117
|
+ /** {@inheritDoc} */
|
|
118
|
+ @Override
|
|
119
|
+ public void validate() {
|
|
120
|
+ super.validate();
|
|
121
|
+ setLocationRelativeTo(mainFrame);
|
|
122
|
+ }
|
|
123
|
+
|
116
|
124
|
/**
|
117
|
125
|
* {@inheritDoc}
|
118
|
126
|
*
|