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