Selaa lähdekoodia

Fixed frame exceptions

Thomas Buck 13 vuotta sitten
vanhempi
commit
fcc77fd06e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Cube Control/frame.java

+ 1
- 1
Cube Control/frame.java Näytä tiedosto

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

Loading…
Peruuta
Tallenna