diff --git a/designer-realize/src/main/java/com/fr/design/report/ReportColumnsPane.java b/designer-realize/src/main/java/com/fr/design/report/ReportColumnsPane.java index aea44cbe50..b1b296e110 100644 --- a/designer-realize/src/main/java/com/fr/design/report/ReportColumnsPane.java +++ b/designer-realize/src/main/java/com/fr/design/report/ReportColumnsPane.java @@ -100,12 +100,19 @@ public class ReportColumnsPane extends BasicPane{ } }; north.setPreferredSize(FineUIScale.scale(new Dimension(549, 59))); - north.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(11, 23, 6, 23), new UIRoundedBorder(new Color(204, 204, 204), 1, 10))); + north.setBorder(BorderFactory.createCompoundBorder(new ScaledEmptyBorder(11, 23, 6, 23), new UIRoundedBorder(new Color(204, 204, 204), 1, 10))); String[] textArray = new String[] { com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Base_TurnOn"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Base_TurnOff") }; - onOffButtonGroup = new UIButtonGroup(textArray); + onOffButtonGroup = new UIButtonGroup(textArray) { + @Override + protected void initButton(UIToggleButton labelButton, int index) { + labelButton.setSize(FineUIScale.scale(new Dimension(60,20))); + labelButton.setPreferredSize(FineUIScale.scale(new Dimension(60, 20))); + super.initButton(labelButton, index); + } + }; onOffButtonGroup.addActionListener(onOffListener); UILabel uiLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportColumns_Columns"));