|
@@ -27,6 +27,7 @@ import com.dmdirc.addons.ui_swing.components.text.TextLabel;
|
27
|
27
|
import java.util.List;
|
28
|
28
|
|
29
|
29
|
import javax.swing.BorderFactory;
|
|
30
|
+import javax.swing.Box;
|
30
|
31
|
import javax.swing.JLabel;
|
31
|
32
|
import javax.swing.JPanel;
|
32
|
33
|
import javax.swing.JSeparator;
|
|
@@ -138,10 +139,10 @@ public abstract class SubstitutionsPanel<T> extends JPanel {
|
138
|
139
|
"editing the field, to insert it.");
|
139
|
140
|
if (alignment.equals(Alignment.VERTICAL)) {
|
140
|
141
|
add(textLabel, "spany, aligny top, wmin 225, wmax 225");
|
141
|
|
- add(new JSeparator(JSeparator.VERTICAL), "growy, pushy, spany");
|
|
142
|
+ add(new JSeparator(JSeparator.VERTICAL), "growy, spany");
|
142
|
143
|
} else {
|
143
|
144
|
add(textLabel, "spanx, aligny top");
|
144
|
|
- add(new JSeparator(JSeparator.HORIZONTAL), "growy, pushy, spanx");
|
|
145
|
+ add(new JSeparator(JSeparator.HORIZONTAL), "growy, spanx");
|
145
|
146
|
}
|
146
|
147
|
|
147
|
148
|
for (SubstitutionLabel label : substitutions) {
|
|
@@ -152,6 +153,7 @@ public abstract class SubstitutionsPanel<T> extends JPanel {
|
152
|
153
|
add(new JLabel("No substitutions."),
|
153
|
154
|
"growx, pushx, aligny top, align center");
|
154
|
155
|
}
|
|
156
|
+ add(Box.createVerticalGlue(), "growy, pushy");
|
155
|
157
|
|
156
|
158
|
setVisible(visible);
|
157
|
159
|
}
|