Explorar el Código

Fixed frame exceptions

Thomas Buck hace 12 años
padre
commit
fcc77fd06e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Cube Control/frame.java

+ 1
- 1
Cube Control/frame.java Ver fichero

@@ -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;

Loading…
Cancelar
Guardar