From 13960a358ac178975e78a104bc52fd1b88289837 Mon Sep 17 00:00:00 2001 From: kerry Date: Tue, 8 Aug 2017 19:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/design/gui/style/FRFontPane.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer_base/src/com/fr/design/gui/style/FRFontPane.java b/designer_base/src/com/fr/design/gui/style/FRFontPane.java index d548177f52..d1339d0427 100644 --- a/designer_base/src/com/fr/design/gui/style/FRFontPane.java +++ b/designer_base/src/com/fr/design/gui/style/FRFontPane.java @@ -300,7 +300,7 @@ public class FRFontPane extends AbstractBasicStylePane implements GlobalNameObse private JPanel createLeftPane() { double p = TableLayout.PREFERRED; double f = TableLayout.FILL; - double[] columnSize = {f}; + double[] columnSize = {p}; double[] rowSize = {p, p, p}; Component[][] components = new Component[][]{ new Component[]{fontSizeStyleComboBox}, @@ -325,8 +325,8 @@ public class FRFontPane extends AbstractBasicStylePane implements GlobalNameObse private JPanel createPane() { JPanel createPane = new JPanel(new BorderLayout(3, 5)); createPane.add(fontNameComboBox, BorderLayout.NORTH); - createPane.add(createLeftPane(), BorderLayout.CENTER); - createPane.add(createRightPane(), BorderLayout.EAST); + JPanel jPanel = TableLayoutHelper.createGapTableLayoutPane(new Component[][]{new Component[]{createLeftPane(), createRightPane()}}, TableLayoutHelper.FILL_LASTCOLUMN, 5, 7); + createPane.add(jPanel, BorderLayout.CENTER); return createPane; }