unknown 12 years ago
parent
commit
c0949ba834
2 changed files with 5 additions and 6 deletions
  1. 2
    3
      CubeControl/Frame.java
  2. 3
    3
      CubeControl/Led3D.java

+ 2
- 3
CubeControl/Frame.java View File

@@ -607,7 +607,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
607 607
 			}
608 608
 		});
609 609
 	
610
-		frameDuration.setBounds(462, 129, 55, 20);
610
+		frameDuration.setBounds(462, 129, 65, 20);
611 611
 		frameDuration.setText("Save");
612 612
 		cp.add(frameDuration);
613 613
 		frameDuration.addActionListener(new ActionListener() {
@@ -741,12 +741,11 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
741 741
 		frameLengthText.setBounds(419, 129, 40, 20);
742 742
 		cp.add(frameLengthText);
743 743
 
744
-
745 744
 		remainingLabel.setBounds(530, 113, 90, 13);
746 745
 		remainingLabel.setText("Remaining:");
747 746
 		cp.add(remainingLabel);
748 747
 
749
-		durationSlider.setBounds(417, 108, 110, 23);
748
+		durationSlider.setBounds(417, 108, 115, 23);
750 749
 		durationSlider.addChangeListener(this);
751 750
 		cp.add(durationSlider);
752 751
 		

+ 3
- 3
CubeControl/Led3D.java View File

@@ -188,10 +188,10 @@ public class Led3D extends MouseAdapter {
188 188
 									// Clicked led found!
189 189
 									System.out.println("Clicked LED found: " + x + " " + y + " " + z);
190 190
 									parentFrame.toggleLED(x, y, z);
191
-									break;
192
-								} else if ((x == 7) && (y == 7) && (z == 7)) {
193
-									System.out.println("Clicked, but LED not found!");
194 191
 
192
+									x = 8;
193
+									y = 8;
194
+									z = 8;
195 195
 								}
196 196
 							}
197 197
 						}

Loading…
Cancel
Save