From 465c5b6388b31d6182235532f63d9e3a55b9c06c Mon Sep 17 00:00:00 2001 From: Yann Date: Mon, 7 Nov 2022 10:26:51 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-81039=20FR11=E5=AE=89=E8=A3=85=E9=93=B6?= =?UTF-8?q?=E8=A1=8C=E5=B7=A5=E4=BD=9C=E5=B9=B3=E5=8F=B0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=EF=BC=8Cfrm=E8=AE=BE=E8=AE=A1=E7=94=BB=E5=B8=83=E6=8B=96?= =?UTF-8?q?=E5=85=A5=E6=8F=92=E4=BB=B6=E6=8E=A7=E4=BB=B6=20=E5=8F=8C?= =?UTF-8?q?=E5=87=BB=EF=BC=8C=E5=81=B6=E7=8E=B0=E5=8F=B3=E4=BE=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=E5=8F=98=E4=B8=BA=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E7=9A=84=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gui/style/series/ColorPickerPaneNumFiled.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/ColorPickerPaneNumFiled.java b/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/ColorPickerPaneNumFiled.java index fcaed6d990..12ab30b558 100644 --- a/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/ColorPickerPaneNumFiled.java +++ b/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/ColorPickerPaneNumFiled.java @@ -6,6 +6,7 @@ import com.fr.module.ModuleContext; import com.fr.value.ClearableLazyValue; import org.jetbrains.annotations.NotNull; +import javax.swing.*; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @@ -32,12 +33,9 @@ public class ColorPickerPaneNumFiled extends UINumberField { @Override protected void attributeChange() { - ses.getValue().schedule(new Runnable() { - @Override - public void run() { - // kuns: 默认修改500, 在地图修改系列颜色text时, 快速响应. - runChange(); - } + ses.getValue().schedule(() -> { + // kuns: 默认修改500, 在地图修改系列颜色text时, 快速响应. + SwingUtilities.invokeLater(this::runChange); }, 500, TimeUnit.MILLISECONDS); }