|
|
|
@ -303,13 +303,16 @@ public class ComponentTitleStylePane extends AbstractBorderPackerPane {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
JPanel container = this; |
|
|
|
|
for (JComponent component: components) { |
|
|
|
|
for (int i = 0; i < components.length; i++) { |
|
|
|
|
JComponent component = components[i]; |
|
|
|
|
if (component != null) { |
|
|
|
|
container.add(component, BorderLayout.NORTH); |
|
|
|
|
JPanel nextContainer = new JPanel(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
nextContainer.setBorder(BorderFactory.createEmptyBorder(IntervalConstants.INTERVAL_L1, 0, 0, 0)); |
|
|
|
|
container.add(nextContainer, BorderLayout.CENTER); |
|
|
|
|
container = nextContainer; |
|
|
|
|
component.setBorder(BorderFactory.createEmptyBorder(i == 0 ? 0 : IntervalConstants.INTERVAL_L1, 0, 0, 0)); |
|
|
|
|
if (i < components.length - 1) { |
|
|
|
|
JPanel nextContainer = new JPanel(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
container.add(nextContainer, BorderLayout.CENTER); |
|
|
|
|
container = nextContainer; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|