|
|
@ -13,9 +13,9 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
import javax.swing.event.ListSelectionEvent; |
|
|
|
|
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
@ -79,8 +79,8 @@ public class MobileStylePane extends BasicPane { |
|
|
|
private void addWestList() { |
|
|
|
private void addWestList() { |
|
|
|
styleList = new JList<>(listModel); |
|
|
|
styleList = new JList<>(listModel); |
|
|
|
styleList.setCellRenderer(render); |
|
|
|
styleList.setCellRenderer(render); |
|
|
|
styleList.addMouseListener(new MouseAdapter() { |
|
|
|
styleList.addListSelectionListener(new ListSelectionListener() { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void valueChanged(ListSelectionEvent e) { |
|
|
|
String selectedValue = (String)styleList.getSelectedValue(); |
|
|
|
String selectedValue = (String)styleList.getSelectedValue(); |
|
|
|
card.show(right, selectedValue); |
|
|
|
card.show(right, selectedValue); |
|
|
|
} |
|
|
|
} |
|
|
|