|
|
|
@ -137,9 +137,6 @@ public class CellStyleEditPane extends MultiTabPane<ThemedCellStyle> {
|
|
|
|
|
protected void initLayout() { |
|
|
|
|
this.setLayout(new BorderLayout(0, 10)); |
|
|
|
|
|
|
|
|
|
JPanel jPanel = new JPanel(); |
|
|
|
|
jPanel.setLayout(new BorderLayout(0, 4)); |
|
|
|
|
|
|
|
|
|
JPanel previewPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
previewArea = new CellRectangleStylePreviewPane(true); |
|
|
|
|
previewArea.setPreferredSize(new Dimension(215, 48)); |
|
|
|
@ -150,8 +147,13 @@ public class CellStyleEditPane extends MultiTabPane<ThemedCellStyle> {
|
|
|
|
|
|
|
|
|
|
this.add(previewPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
this.add(jPanel, BorderLayout.CENTER); |
|
|
|
|
jPanel.add(tabPane, BorderLayout.NORTH); |
|
|
|
|
JPanel settingsPane = new JPanel(); |
|
|
|
|
this.add(settingsPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
settingsPane.setBorder(BorderFactory.createEmptyBorder(0, 4, 0, 4)); |
|
|
|
|
settingsPane.setLayout(new BorderLayout(0, 4)); |
|
|
|
|
|
|
|
|
|
settingsPane.add(tabPane, BorderLayout.NORTH); |
|
|
|
|
JPanel attrListenerPane = new AbstractAttrNoScrollPane() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -176,18 +178,27 @@ public class CellStyleEditPane extends MultiTabPane<ThemedCellStyle> {
|
|
|
|
|
fireAttrChangeListener(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BasicScrollPane basicScrollPane = new AttrScrollPane() { |
|
|
|
|
return new EmptyBorderAttrScrollPane() { |
|
|
|
|
@Override |
|
|
|
|
protected JPanel createContentPane() { |
|
|
|
|
return centerPane; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
return basicScrollPane; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
jPanel.add(attrListenerPane, BorderLayout.CENTER); |
|
|
|
|
settingsPane.add(attrListenerPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void updateBean(ThemedCellStyle ob) {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static abstract class EmptyBorderAttrScrollPane extends AttrScrollPane { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void layoutContentPane() { |
|
|
|
|
super.layoutContentPane(); |
|
|
|
|
leftcontentPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|