Pārlūkot izejas kodu

Fixed frame exceptions

Thomas Buck 12 gadus atpakaļ
vecāks
revīzija
fcc77fd06e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Cube Control/frame.java

+ 1
- 1
Cube Control/frame.java Parādīt failu

@@ -97,7 +97,7 @@ public class frame extends JFrame implements ListSelectionListener {
97 97
   }
98 98
 
99 99
   public void valueChanged(ListSelectionEvent evt) {
100
-    if (!evt.getValueIsAdjusting()) {
100
+    if ((!evt.getValueIsAdjusting()) && (evt.getSource() != animList) && (evt.getSource() != frameList)) {
101 101
      DefaultListModel model = (DefaultListModel)((JList)evt.getSource()).getModel();
102 102
      int anim = animList.getSelectedIndex();
103 103
      int max;

Notiek ielāde…
Atcelt
Saglabāt