Sfoglia il codice sorgente

Fixed some element sizes.

unknown 12 anni fa
parent
commit
10eaadfaa0
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 2
    3
      CubeControl/Frame.java
  2. 4
    3
      CubeControl/Led3D.java

+ 2
- 3
CubeControl/Frame.java Vedi 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
 		

+ 4
- 3
CubeControl/Led3D.java Vedi File

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

Loading…
Annulla
Salva