From ac440dfd224437de85134e429a71a5c4889301b4 Mon Sep 17 00:00:00 2001 From: MoMeak Date: Mon, 7 Aug 2017 09:38:05 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-2897=209.0=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8E=BB=E6=8E=89=E7=A9=BA=E6=A0=BC?= =?UTF-8?q?=EF=BC=8C=E6=94=BE=E4=B8=AA=E7=A9=BA=E7=9A=84uilabel=E5=81=9A?= =?UTF-8?q?=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer/src/com/fr/design/widget/WidgetPane.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/designer/src/com/fr/design/widget/WidgetPane.java b/designer/src/com/fr/design/widget/WidgetPane.java index c0fd789aa..f26b1a19a 100644 --- a/designer/src/com/fr/design/widget/WidgetPane.java +++ b/designer/src/com/fr/design/widget/WidgetPane.java @@ -56,15 +56,18 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener editorTypeComboBox.setPreferredSize(new Dimension(155, 30)); editorTypeComboBox.setMaximumRowCount(16); + UILabel emptyLabel = new UILabel(); + emptyLabel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); + double p = TableLayout.PREFERRED; double f = TableLayout.FILL; - double[] columnSize = {p, f}; + double[] columnSize = {p, p, f}; double[] rowSize = {p}; Component[][] components = new Component[][]{ - new Component[]{new UILabel(Inter.getLocText(new String[]{"FR-Designer_Selection", "FR-Designer_Widget"})), editorTypeComboBox}, + new Component[]{new UILabel(Inter.getLocText(new String[]{"FR-Designer_Selection", "FR-Designer_Widget"})), emptyLabel, editorTypeComboBox}, }; northPane = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); - northPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 15)); + northPane.setBorder(BorderFactory.createEmptyBorder(12, 10, 10, 15)); this.add(northPane, BorderLayout.NORTH); editorTypeComboBox.addItemListener(this);