|
@@ -104,15 +104,6 @@ public class Frame extends JFrame implements ListSelectionListener {
|
104
|
104
|
if ((!evt.getValueIsAdjusting()) && ((evt.getSource() == animList) || (evt.getSource() == frameList))) {
|
105
|
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
|
107
|
if ((evt.getSource() == animList) && (animList.getSelectedIndex() != -1)) {
|
117
|
108
|
// animList selection changed, update frameList
|
118
|
109
|
frameListModel.clear();
|
|
@@ -121,6 +112,15 @@ public class Frame extends JFrame implements ListSelectionListener {
|
121
|
112
|
}
|
122
|
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
|
|