From 465c5b6388b31d6182235532f63d9e3a55b9c06c Mon Sep 17 00:00:00 2001 From: Yann Date: Mon, 7 Nov 2022 10:26:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?REPORT-81039=20FR11=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=B7=A5=E4=BD=9C=E5=B9=B3=E5=8F=B0=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=EF=BC=8Cfrm=E8=AE=BE=E8=AE=A1=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E6=8B=96=E5=85=A5=E6=8F=92=E4=BB=B6=E6=8E=A7=E4=BB=B6=20?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=EF=BC=8C=E5=81=B6=E7=8E=B0=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9=E5=8F=98=E4=B8=BA=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=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); } From 4f54af4c9a8abba370b5eaa1871a020471591432 Mon Sep 17 00:00:00 2001 From: Yann Date: Mon, 7 Nov 2022 10:31:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?REPORT-81039=20FR11=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=B7=A5=E4=BD=9C=E5=B9=B3=E5=8F=B0=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=EF=BC=8Cfrm=E8=AE=BE=E8=AE=A1=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E6=8B=96=E5=85=A5=E6=8F=92=E4=BB=B6=E6=8E=A7=E4=BB=B6=20?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=EF=BC=8C=E5=81=B6=E7=8E=B0=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9=E5=8F=98=E4=B8=BA=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=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 --- .../chart/gui/style/series/ColorPickerPaneNumFiled.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 12ab30b558..7ab5058f7e 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,7 +6,7 @@ import com.fr.module.ModuleContext; import com.fr.value.ClearableLazyValue; import org.jetbrains.annotations.NotNull; -import javax.swing.*; +import javax.swing.SwingUtilities; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit;