Browse Source

Fixed some element sizes.

unknown 12 years ago
parent
commit
10eaadfaa0
2 changed files with 6 additions and 6 deletions
  1. 2
    3
      CubeControl/Frame.java
  2. 4
    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
 		

+ 4
- 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!");
191
+									x = 8;
192
+									y = 8;
193
+									z = 8;
194
 								}
194
 								}
195
 							}
195
 							}
196
 						}
196
 						}
197
 					}
197
 					}
198
 				} else {
198
 				} else {
199
 					System.out.println("Clicked, but not a sphere. Clicked object: " + p.getClass().getName());
199
 					System.out.println("Clicked, but not a sphere. Clicked object: " + p.getClass().getName());
200
+
200
 				}
201
 				}
201
 			}
202
 			}
202
 		} else {
203
 		} else {

Loading…
Cancel
Save