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
 			}
607
 			}
608
 		});
608
 		});
609
 	
609
 	
610
-		frameDuration.setBounds(462, 129, 55, 20);
610
+		frameDuration.setBounds(462, 129, 65, 20);
611
 		frameDuration.setText("Save");
611
 		frameDuration.setText("Save");
612
 		cp.add(frameDuration);
612
 		cp.add(frameDuration);
613
 		frameDuration.addActionListener(new ActionListener() {
613
 		frameDuration.addActionListener(new ActionListener() {
741
 		frameLengthText.setBounds(419, 129, 40, 20);
741
 		frameLengthText.setBounds(419, 129, 40, 20);
742
 		cp.add(frameLengthText);
742
 		cp.add(frameLengthText);
743
 
743
 
744
-
745
 		remainingLabel.setBounds(530, 113, 90, 13);
744
 		remainingLabel.setBounds(530, 113, 90, 13);
746
 		remainingLabel.setText("Remaining:");
745
 		remainingLabel.setText("Remaining:");
747
 		cp.add(remainingLabel);
746
 		cp.add(remainingLabel);
748
 
747
 
749
-		durationSlider.setBounds(417, 108, 110, 23);
748
+		durationSlider.setBounds(417, 108, 115, 23);
750
 		durationSlider.addChangeListener(this);
749
 		durationSlider.addChangeListener(this);
751
 		cp.add(durationSlider);
750
 		cp.add(durationSlider);
752
 		
751
 		

+ 3
- 3
CubeControl/Led3D.java View File

188
 									// Clicked led found!
188
 									// Clicked led found!
189
 									System.out.println("Clicked LED found: " + x + " " + y + " " + z);
189
 									System.out.println("Clicked LED found: " + x + " " + y + " " + z);
190
 									parentFrame.toggleLED(x, y, z);
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