From 2f1b52bb97af8ce04c22a48047d9bb2c5f8263d5 Mon Sep 17 00:00:00 2001 From: Starryi Date: Thu, 4 Nov 2021 15:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=8F=AF?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E6=96=87=E6=9C=AC=E6=8E=A7=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E4=B8=8D=E7=AC=A6=E5=90=88=E9=A2=84=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 setEnable(false)会导致文字颜色始终为灰色 【改动思路】 使用setEditable替换原来的setEnable --- .../java/com/fr/design/mainframe/theme/edit/ui/LabelUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/ui/LabelUtils.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/ui/LabelUtils.java index 13769cfc64..53de406afe 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/ui/LabelUtils.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/ui/LabelUtils.java @@ -37,7 +37,7 @@ public class LabelUtils { Font newFont = FRFont.getInstance(tipLabel.getFont().getFontName(), Font.PLAIN, 12); tipLabel.setFont(newFont); tipLabel.setBorder(BorderFactory.createEmptyBorder()); - tipLabel.setEnabled(false); + tipLabel.setEditable(false); tipLabel.setText(title); tipLabel.setLineWrap(true); tipLabel.setWrapStyleWord(true);