Browse Source

Fixed frame exceptions

Thomas Buck 13 years ago
parent
commit
fcc77fd06e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Cube Control/frame.java

+ 1
- 1
Cube Control/frame.java View File

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…
Cancel
Save