From 6306e9290d5cdb48162c85ad2e2ae37d33d8f206 Mon Sep 17 00:00:00 2001 From: Buble Date: Wed, 8 Jan 2020 11:04:35 +0800 Subject: [PATCH] =?UTF-8?q?MOBILE-23781=20=E5=8D=95=E9=80=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=BB=84=E7=9A=84=E5=BC=B9=E5=87=BA=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=A1=86,=E6=9C=89=E6=97=B6=E5=80=99=E7=82=B9=E5=87=BBTab?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/mainframe/mobile/ui/MobileStylePane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java b/designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java index d0e949fa9c..3573427ca9 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java @@ -13,9 +13,9 @@ import com.fr.log.FineLoggerFactory; import com.fr.stable.ArrayUtils; import javax.swing.*; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; import java.awt.*; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; import java.util.HashMap; import java.util.Map; @@ -79,8 +79,8 @@ public class MobileStylePane extends BasicPane { private void addWestList() { styleList = new JList<>(listModel); styleList.setCellRenderer(render); - styleList.addMouseListener(new MouseAdapter() { - public void mouseClicked(MouseEvent e) { + styleList.addListSelectionListener(new ListSelectionListener() { + public void valueChanged(ListSelectionEvent e) { String selectedValue = (String)styleList.getSelectedValue(); card.show(right, selectedValue); }