From 4cb90204042d0e0b6c5982820c80af6ee10c1bde Mon Sep 17 00:00:00 2001 From: "Yuan.Wang" <1536296691@qq.com> Date: Fri, 18 Sep 2020 15:17:20 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-40028=20=E5=9C=A8UI=E7=B1=BB=E7=9A=84pai?= =?UTF-8?q?nt=E6=96=B9=E6=B3=95=E4=B8=AD=E5=B7=B2=E7=BB=8F=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BA=86=E9=A1=B6=E5=B1=82=E7=BB=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E7=BB=98=E5=88=B6=EF=BC=8C=E5=B0=B1=E4=B8=8D=E5=B0=86=E5=85=B6?= =?UTF-8?q?=E5=8A=A0=E5=85=A5FormDesigner=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/mainframe/FormDesigner.java | 1 - .../src/main/java/com/fr/design/mainframe/FormDesignerUI.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java b/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java index eefeb01a32..55c2106b01 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java @@ -189,7 +189,6 @@ public class FormDesigner extends TargetComponent
implements TreeSelection this.switchAction = switchAction; topXCreators=new TopXCreators(this); topXCreators.setVisible(true); - add(topXCreators); // 必须刷新"参数/控件树"面板,否则,若最近一次打开模版为 cpt,重启设计器,打开 frm,控件树消失 populateParameterPropertyPane(); diff --git a/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java b/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java index 2a8e255e83..a54ec1211e 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java @@ -84,7 +84,7 @@ public class FormDesignerUI extends ComponentUI { // 设计参数面板 repaintPara(g, paraComponent, c); } - repaintTopXCreators(g); + paintTopXCreators(g); if (designer.isDrawLineMode() && designer.getDrawLineHelper().drawLining()) { designer.getDrawLineHelper().drawAuxiliaryLine(g); @@ -446,7 +446,7 @@ public class FormDesignerUI extends ComponentUI { ComponentUtils.resetBuffer(dbcomponents); } - private void repaintTopXCreators(Graphics g){ + private void paintTopXCreators(Graphics g){ designer.paintTopCreators(g); }