Browse Source

All Layer Buttons now call the LayerEdit Frame

LEDButtons now with color instead of images...
Max Nuding 12 years ago
parent
commit
942a268a39
4 changed files with 9 additions and 12 deletions
  1. BIN
      Cube Control/LEDoff.png
  2. BIN
      Cube Control/LEDon.png
  3. 7
    7
      Cube Control/frame.java
  4. 2
    5
      Cube Control/layerEditFrame.java

BIN
Cube Control/LEDoff.png View File


BIN
Cube Control/LEDon.png View File


+ 7
- 7
Cube Control/frame.java View File

@@ -363,31 +363,31 @@ public class frame extends JFrame {
363 363
   }
364 364
 
365 365
   public void editB_ActionPerformed(ActionEvent evt) {
366
-
366
+     layerEditFrame layerFrame1 = new layerEditFrame();
367 367
   }
368 368
 
369 369
   public void editC_ActionPerformed(ActionEvent evt) {
370
-
370
+    layerEditFrame layerFrame1 = new layerEditFrame();
371 371
   }
372 372
 
373 373
   public void editD_ActionPerformed(ActionEvent evt) {
374
-
374
+    layerEditFrame layerFrame1 = new layerEditFrame();
375 375
   }
376 376
 
377 377
   public void editE_ActionPerformed(ActionEvent evt) {
378
-
378
+    layerEditFrame layerFrame1 = new layerEditFrame();
379 379
   }
380 380
 
381 381
   public void editF_ActionPerformed(ActionEvent evt) {
382
-
382
+    layerEditFrame layerFrame1 = new layerEditFrame();
383 383
   }
384 384
 
385 385
   public void editG_ActionPerformed(ActionEvent evt) {
386
-
386
+    layerEditFrame layerFrame1 = new layerEditFrame();
387 387
   }
388 388
 
389 389
   public void editH_ActionPerformed(ActionEvent evt) {
390
-
390
+    layerEditFrame layerFrame1 = new layerEditFrame();
391 391
   }
392 392
 
393 393
   public void frameUp_ActionPerformed(ActionEvent evt) {

+ 2
- 5
Cube Control/layerEditFrame.java View File

@@ -14,8 +14,6 @@ import javax.swing.event.*;
14 14
 public class layerEditFrame extends JFrame {
15 15
   // Anfang Attribute
16 16
   private JPanel panelLED1 = new JPanel(null, true);
17
-  public static ImageIcon on = new ImageIcon("LEDon.png");
18
-  public static ImageIcon off = new ImageIcon("LEDoff.png");
19 17
   JButton[][] ledPanels = new JButton[8][8];
20 18
 
21 19
   // Ende Attribute
@@ -37,9 +35,8 @@ public class layerEditFrame extends JFrame {
37 35
 
38 36
     for(int i = 0; i < 8; i++){
39 37
       for(int j = 0; j < 8; j++){
40
-         System.out.println(x);
41
-         System.out.println(y);
42
-         ledPanels[i][j] = new JButton(on);
38
+         ledPanels[i][j] = new JButton();
39
+         ledPanels[i][j].setBackground(Color.RED);
43 40
          ledPanels[i][j].setBounds((i*20)+5, (j*20)+5, 15, 15);
44 41
          ledPanels[i][j].setVisible(true);
45 42
          cp.add(ledPanels[i][j]);

Loading…
Cancel
Save