Browse Source

MOBILE-23781 单选按钮组的弹出配置框,有时候点击Tab不会切换

feature/big-screen
Buble 5 years ago
parent
commit
6306e9290d
  1. 8
      designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

8
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);
}

Loading…
Cancel
Save