From f7b1fd6f1945bb6f55ab23f3a83ae2e61d4d6cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Fri, 3 Dec 2021 17:12:10 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-63729=20=E5=A1=AB=E6=8A=A5-=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6-=E6=8E=A7=E4=BB=B6=E6=95=B0=E6=8D=AE=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E8=AE=BE=E7=BD=AE=E6=98=BE=E7=A4=BA=E5=80=BC=E4=B8=BA?= =?UTF-8?q?=E5=85=AC=E5=BC=8F=E6=97=B6=EF=BC=8C=E5=85=AC=E5=BC=8F=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=85=B3=E5=87=A0=E6=AC=A1=E6=89=8D=E5=85=B3=E5=BE=97?= =?UTF-8?q?=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/gui/ibutton/UIButtonGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/ibutton/UIButtonGroup.java b/designer-base/src/main/java/com/fr/design/gui/ibutton/UIButtonGroup.java index 2bd2763c8..a9b97d269 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ibutton/UIButtonGroup.java +++ b/designer-base/src/main/java/com/fr/design/gui/ibutton/UIButtonGroup.java @@ -389,9 +389,9 @@ public class UIButtonGroup extends JPanel implements GlobalNameObserver, UIOb * @param l */ public void addChangeListener(ChangeListener l) { + listenerList.add(ChangeListener.class, l); for (int i = 0; i < labelButtonList.size(); i++) { labelButtonList.get(i).addChangeListener(l); - listenerList.add(ChangeListener.class, l); } } @@ -399,9 +399,9 @@ public class UIButtonGroup extends JPanel implements GlobalNameObserver, UIOb * @param l */ public void removeChangeListener(ChangeListener l) { + listenerList.remove(ChangeListener.class, l); for (int i = 0; i < labelButtonList.size(); i++) { labelButtonList.get(i).removeChangeListener(l); - listenerList.remove(ChangeListener.class, l); } }