diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java index e4e4745d30..7383f9c9e6 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java @@ -13,6 +13,8 @@ import javax.swing.JScrollPane; import java.awt.BorderLayout; import java.awt.Dimension; +import static com.fine.theme.utils.FineUIScale.scale; + // 标签提示中的富文本面板,包含字段设置和富文本编辑器 public class VanChartRichTextPane extends BasicBeanPane { @@ -48,13 +50,13 @@ public class VanChartRichTextPane extends BasicBeanPane { fieldListContent.add(fieldListPane, BorderLayout.NORTH); JScrollPane fieldListScrollPane = new JScrollPane(fieldListContent); - fieldListScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); + fieldListScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); fieldListScrollPane.setHorizontalScrollBar(null); fieldListScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Add_Field"))); // 字段格式和汇总 JScrollPane fieldAttrScrollPane = new JScrollPane(fieldAttrPane); - fieldAttrScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); + fieldAttrScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); fieldAttrScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Field_Setting"))); fieldPane.add(fieldListScrollPane); @@ -71,7 +73,7 @@ public class VanChartRichTextPane extends BasicBeanPane { JPanel richEditorPane = new JPanel(); richEditorPane.setLayout(new BorderLayout()); - richEditorPane.setPreferredSize(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H)); + richEditorPane.setPreferredSize(scale(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H))); richEditorPane.add(richEditor, BorderLayout.CENTER); return richEditorPane;