From 5ca4e4f18570385dc12f84915fe7b7904566fc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levy=2EXie-=E8=A7=A3=E5=AE=89=E6=A3=AE?= Date: Thu, 26 Sep 2024 10:09:49 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-135889=20fix:NewUI=E8=87=AA=E6=9F=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/widget/ui/UserEditorDefinePane.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/widget/ui/UserEditorDefinePane.java b/designer-realize/src/main/java/com/fr/design/widget/ui/UserEditorDefinePane.java index 455bf0b125..7cd6865af6 100644 --- a/designer-realize/src/main/java/com/fr/design/widget/ui/UserEditorDefinePane.java +++ b/designer-realize/src/main/java/com/fr/design/widget/ui/UserEditorDefinePane.java @@ -1,13 +1,12 @@ package com.fr.design.widget.ui; -import com.fr.design.gui.ilable.UILabel; +import com.fine.theme.utils.FineUIUtils; +import com.fr.design.i18n.Toolkit; import com.fr.design.layout.FRGUIPaneFactory; -import com.fr.design.utils.DesignUtils; import com.fr.form.ui.NameWidget; -import javax.swing.SwingConstants; +import javax.swing.JTextArea; import java.awt.BorderLayout; -import java.awt.Font; public class UserEditorDefinePane extends AbstractDataModify { private NameWidget nWidget; @@ -18,13 +17,9 @@ public class UserEditorDefinePane extends AbstractDataModify { private void initComponents() { this.setLayout(FRGUIPaneFactory.createBorderLayout()); - UILabel infoLabel = new UILabel(); - infoLabel.setFont(DesignUtils.getDefaultGUIFont().applySize(24).applyStyle(Font.BOLD)); - infoLabel.setText(com.fr.design.i18n.Toolkit.i18nText( - "Fine-Design_Report_Widget_User_Defined_Editor") + "."); - infoLabel.setHorizontalAlignment(SwingConstants.CENTER); - - this.add(infoLabel, BorderLayout.CENTER); + JTextArea label = FineUIUtils.createAutoWrapTipLabel(Toolkit.i18nText( + "Fine-Design_Report_Widget_User_Defined_Editor")); + this.add(label, BorderLayout.CENTER); } @Override