Browse Source

Merge pull request #1396 in DESIGN/design from ~BUBLE/design:release/10.0 to release/10.0

* commit '6306e9290d5cdb48162c85ad2e2ae37d33d8f206':
  MOBILE-23781 单选按钮组的弹出配置框,有时候点击Tab不会切换
feature/big-screen
wei 5 years ago
parent
commit
af906ae608
  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