|
|
|
@ -28,7 +28,7 @@ public class VanChartFieldButton extends JPanel {
|
|
|
|
|
private static final Icon ADD_ICON = BaseUtils.readIcon("/com/fr/base/images/cell/control/add.png"); |
|
|
|
|
|
|
|
|
|
private static final int W = 200; |
|
|
|
|
private static final int H = 28; |
|
|
|
|
private static final int H = 24; |
|
|
|
|
|
|
|
|
|
private final String fieldName; |
|
|
|
|
private final String fieldId; |
|
|
|
@ -146,6 +146,9 @@ public class VanChartFieldButton extends JPanel {
|
|
|
|
|
listener.addSelectedField(fieldName, fieldId); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
fieldButton.setBorderPaintedOnlyWhenPressed(true); |
|
|
|
|
addButton.setBorderPaintedOnlyWhenPressed(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel getContentPane() { |
|
|
|
@ -160,7 +163,7 @@ public class VanChartFieldButton extends JPanel {
|
|
|
|
|
double[] rowSize = {p}; |
|
|
|
|
double[] columnSize = {e, d}; |
|
|
|
|
|
|
|
|
|
JPanel content = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 5, 0); |
|
|
|
|
JPanel content = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 0, 0); |
|
|
|
|
content.setPreferredSize(new Dimension(W, H)); |
|
|
|
|
|
|
|
|
|
return content; |
|
|
|
|