Browse Source

Changed back to images... (thank to OS X)

Signed-off-by: Max Nuding <the.short.german@gmail.com>
Max Nuding 12 years ago
parent
commit
c0e8304ef7

BIN
Cube Control/LEDoff.png View File


BIN
Cube Control/LEDon.png View File


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

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

+ 0
- 56
Cube Control/layerEditFrame.jfm View File

@@ -1,56 +0,0 @@
1
-object layerEditFrame: TFGUIFormular
2
-  Left = 459
3
-  Top = 62
4
-  BorderIcons = [biSystemMenu, biMinimize]
5
-  Caption = 'layerEditFrame'
6
-  ClientHeight = 396
7
-  ClientWidth = 458
8
-  Color = clBtnFace
9
-  Font.Charset = DEFAULT_CHARSET
10
-  Font.Color = clWindowText
11
-  Font.Height = -10
12
-  Font.Name = 'MS Sans Serif'
13
-  Font.Style = []
14
-  FormStyle = fsMDIChild
15
-  OldCreateOrder = True
16
-  Position = poDesigned
17
-  Visible = True
18
-  OnClose = FormClose
19
-  OnCloseQuery = FormCloseQuery
20
-  OnResize = FormResize
21
-  FrameType = 5
22
-  Resizable = False
23
-  Undecorated = False
24
-  Background = clBtnFace
25
-  PixelsPerInch = 96
26
-  TextHeight = 13
27
-  object panelLED1: TJPanel
28
-    Tag = 12
29
-    Left = 16
30
-    Top = 24
31
-    Width = 57
32
-    Height = 57
33
-    Foreground = 3355443
34
-    Background = 15658734
35
-    Font.Charset = DEFAULT_CHARSET
36
-    Font.Color = clWindowText
37
-    Font.Height = -12
38
-    Font.Name = 'Dialog'
39
-    Font.Style = [fsBold]
40
-    Border.BorderType = NoBorder
41
-    Border.LineColor = clBlack
42
-    Border.LineThickness = 0
43
-    Border.LineRounded = False
44
-    Border.EtchHighlightColor = clBlack
45
-    Border.EtchShadowColor = clBlack
46
-    Border.Etchtype = 0
47
-    Border.BevelHighlightColor = clBlack
48
-    Border.BevelShadowColor = clBlack
49
-    Border.Beveltype = 0
50
-    Border.MatteColor = clBlack
51
-    Border.MatteTop = 0
52
-    Border.MatteLeft = 0
53
-    Border.MatteBottom = 0
54
-    Border.MatteRight = 0
55
-  end
56
-end

Loading…
Cancel
Save