From 4313157f8fb11d689f72d054a1479e616fdee063 Mon Sep 17 00:00:00 2001 From: hades Date: Tue, 26 Apr 2022 10:10:55 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-70463=20=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E9=94=AE=E5=85=A5=E6=96=87=E6=9C=AC=E5=90=8E=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E9=97=AA=E7=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/alphafine/component/AlphaFineFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java b/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java index 52ddd614c..d51684f5e 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java @@ -511,7 +511,8 @@ public class AlphaFineFrame extends JFrame { private void startSearchTextFieldTimer() { Timer timer = new Timer(TIMER_DELAY, e -> { - if (StringUtils.isEmpty(searchTextField.getText())) { + // 坑 isShowing返回false 即使textField有内容 getText返回的也是空 + if (searchTextField.isShowing() && StringUtils.isEmpty(searchTextField.getText())) { SearchTooltipPopup.getInstance().hide(); switchType(selectedType); }