Browse Source

Actually a bad idea...

Thomas Buck 12 years ago
parent
commit
abbd27cf97
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      CubeControl/Frame.java

+ 9
- 9
CubeControl/Frame.java View File

104
   if ((!evt.getValueIsAdjusting()) && ((evt.getSource() == animList) || (evt.getSource() == frameList))) {
104
   if ((!evt.getValueIsAdjusting()) && ((evt.getSource() == animList) || (evt.getSource() == frameList))) {
105
     // If animList or framsList is the source, we act...
105
     // If animList or framsList is the source, we act...
106
 
106
 
107
-    // If both selections are valid, update Frame duration and set 3D data
108
-    if ((animList.getSelectedIndex() != -1) && (frameList.getSelectedIndex() != -1)) {
109
-      ledView.setData(worker.getFrame(animList.getSelectedIndex(), frameList.getSelectedIndex()));
110
-      frameLengthText.setText(Integer.toString(worker.getFrameTime(animList.getSelectedIndex(), frameList.getSelectedIndex())));
111
-    } else {
112
-      // clear Frame duration
113
-      frameLengthText.setText("");
114
-    }
115
-
116
     if ((evt.getSource() == animList) && (animList.getSelectedIndex() != -1)) {
107
     if ((evt.getSource() == animList) && (animList.getSelectedIndex() != -1)) {
117
       // animList selection changed, update frameList
108
       // animList selection changed, update frameList
118
       frameListModel.clear();
109
       frameListModel.clear();
121
       }
112
       }
122
       frameList.setModel(frameListModel);
113
       frameList.setModel(frameListModel);
123
     }
114
     }
115
+
116
+    // If both selections are valid, update Frame duration and set 3D data
117
+    if ((animList.getSelectedIndex() != -1) && (frameList.getSelectedIndex() != -1)) {
118
+      ledView.setData(worker.getFrame(animList.getSelectedIndex(), frameList.getSelectedIndex()));
119
+      frameLengthText.setText(Integer.toString(worker.getFrameTime(animList.getSelectedIndex(), frameList.getSelectedIndex())));
120
+    } else {
121
+      // clear Frame duration
122
+      frameLengthText.setText("");
123
+    }
124
   }
124
   }
125
   }
125
   }
126
 
126
 

Loading…
Cancel
Save