Browse Source

renamed the class 'frame' to 'Frame'

hutattedonmyarm 13 years ago
parent
commit
5b9f5311c5
1 changed files with 19 additions and 19 deletions
  1. 19
    19
      Cube Control/frame.java

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

@@ -1,10 +1,10 @@
1 1
 /*
2
-* frame.java
2
+* Frame.java
3 3
 *
4 4
 *
5 5
 * Copyright 2011 Thomas Buck <xythobuz@me.com>
6 6
 * Copyright 2011 Max Nuding <max.nuding@gmail.com>
7
-* Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
7
+* Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
8 8
 *
9 9
 * This file is part of LED-Cube.
10 10
 *
@@ -31,7 +31,7 @@ import javax.swing.event.*;
31 31
 import java.io.File;
32 32
 
33 33
 
34
-public class frame extends JFrame implements ListSelectionListener {
34
+public class Frame extends JFrame implements ListSelectionListener {
35 35
   // Anfang Variablen
36 36
   private GraphicsConfiguration gConfig = SimpleUniverse.getPreferredConfiguration();
37 37
   private Canvas3D cubeCanvas = new Canvas3D(gConfig);
@@ -54,7 +54,7 @@ public class frame extends JFrame implements ListSelectionListener {
54 54
   private JButton frameAdd = new JButton();
55 55
   private JButton frameRemove = new JButton();
56 56
   private JButton frameRename = new JButton();
57
-  private JButton frame = new JButton();
57
+  private JButton Frame = new JButton();
58 58
   private JList animList = new JList();
59 59
   private DefaultListModel animModel = new DefaultListModel();
60 60
   private JScrollPane animScrollPane = new JScrollPane(animList);
@@ -104,12 +104,12 @@ public class frame extends JFrame implements ListSelectionListener {
104 104
   if ((!evt.getValueIsAdjusting()) && ((evt.getSource() == animList) || (evt.getSource() == frameList))) {
105 105
     // If animList or framsList is the source, we act...
106 106
 
107
-    // If both selections are valid, update frame duration and set 3D data
107
+    // If both selections are valid, update Frame duration and set 3D data
108 108
     if ((animList.getSelectedIndex() != -1) && (frameList.getSelectedIndex() != -1)) {
109 109
       ledView.setData(worker.getFrame(animList.getSelectedIndex(), frameList.getSelectedIndex()));
110 110
       frmLngthTxt.setText(Integer.toString(worker.getFrameTime(animList.getSelectedIndex(), frameList.getSelectedIndex())));
111 111
     } else {
112
-      // clear frame duration
112
+      // clear Frame duration
113 113
       frmLngthTxt.setText("");
114 114
     }
115 115
 
@@ -139,7 +139,7 @@ public class frame extends JFrame implements ListSelectionListener {
139 139
       }
140 140
   }
141 141
 
142
-  public frame(String title) {
142
+  public Frame(String title) {
143 143
     // Frame-Initialisierung
144 144
     super(title);
145 145
 
@@ -316,7 +316,7 @@ public class frame extends JFrame implements ListSelectionListener {
316 316
       }
317 317
       int f = frameList.getSelectedIndex();
318 318
       if (f < 0) {
319
-        errorMessage("Select a frame!");
319
+        errorMessage("Select a Frame!");
320 320
         return;
321 321
       }
322 322
       worker.setFrameName(askString("Rename", "Rename " + frameList.getSelectedValue() + "?"), a, f);
@@ -364,7 +364,7 @@ public class frame extends JFrame implements ListSelectionListener {
364 364
           return;
365 365
         }
366 366
         if (frameList.getSelectedIndex() == -1) {
367
-          errorMessage("Please select a frame!");
367
+          errorMessage("Please select a Frame!");
368 368
           return;
369 369
         }
370 370
         worker.setFrameTime((byte)(Integer.parseInt(frmLngthTxt.getText()) - 1), animList.getSelectedIndex(), frameList.getSelectedIndex());
@@ -517,7 +517,7 @@ public class frame extends JFrame implements ListSelectionListener {
517 517
      if(animList.getSelectedIndex() == -1){
518 518
        errorMessage("Please select an animation.");
519 519
      } else if(frameList.getSelectedIndex() == -1){
520
-       errorMessage("Please select a frame.");
520
+       errorMessage("Please select a Frame.");
521 521
      } else {
522 522
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 0, worker, this);
523 523
 
@@ -528,7 +528,7 @@ public class frame extends JFrame implements ListSelectionListener {
528 528
     if(animList.getSelectedIndex() == -1){
529 529
        errorMessage("Please select an animation.");
530 530
      } else if(frameList.getSelectedIndex() == -1){
531
-       errorMessage("Please select a frame.");
531
+       errorMessage("Please select a Frame.");
532 532
      } else {
533 533
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 1, worker, this);
534 534
      }
@@ -538,7 +538,7 @@ public class frame extends JFrame implements ListSelectionListener {
538 538
     if(animList.getSelectedIndex() == -1){
539 539
        errorMessage("Please select an animation.");
540 540
      } else if(frameList.getSelectedIndex() == -1){
541
-       errorMessage("Please select a frame.");
541
+       errorMessage("Please select a Frame.");
542 542
      } else {
543 543
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 2, worker, this);
544 544
      }
@@ -548,7 +548,7 @@ public class frame extends JFrame implements ListSelectionListener {
548 548
     if(animList.getSelectedIndex() == -1){
549 549
        errorMessage("Please select an animation.");
550 550
      } else if(frameList.getSelectedIndex() == -1){
551
-       errorMessage("Please select a frame.");
551
+       errorMessage("Please select a Frame.");
552 552
      } else {
553 553
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 3, worker, this);
554 554
      }
@@ -558,7 +558,7 @@ public class frame extends JFrame implements ListSelectionListener {
558 558
      if(animList.getSelectedIndex() == -1){
559 559
        errorMessage("Please select an animation.");
560 560
      } else if(frameList.getSelectedIndex() == -1){
561
-       errorMessage("Please select a frame.");
561
+       errorMessage("Please select a Frame.");
562 562
      } else {
563 563
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 4, worker, this);
564 564
      }
@@ -568,7 +568,7 @@ public class frame extends JFrame implements ListSelectionListener {
568 568
      if(animList.getSelectedIndex() == -1){
569 569
        errorMessage("Please select an animation.");
570 570
      } else if(frameList.getSelectedIndex() == -1){
571
-       errorMessage("Please select a frame.");
571
+       errorMessage("Please select a Frame.");
572 572
      } else {
573 573
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 5, worker, this);
574 574
      }
@@ -578,7 +578,7 @@ public class frame extends JFrame implements ListSelectionListener {
578 578
      if(animList.getSelectedIndex() == -1){
579 579
        errorMessage("Please select an animation.");
580 580
      } else if(frameList.getSelectedIndex() == -1){
581
-       errorMessage("Please select a frame.");
581
+       errorMessage("Please select a Frame.");
582 582
      } else {
583 583
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 6, worker, this);
584 584
      }
@@ -588,7 +588,7 @@ public class frame extends JFrame implements ListSelectionListener {
588 588
      if(animList.getSelectedIndex() == -1){
589 589
        errorMessage("Please select an animation.");
590 590
      } else if(frameList.getSelectedIndex() == -1){
591
-       errorMessage("Please select a frame.");
591
+       errorMessage("Please select a Frame.");
592 592
      } else {
593 593
        layerEditFrame layerFrame1 = new layerEditFrame(animList.getSelectedIndex(), frameList.getSelectedIndex(), 7, worker, this);
594 594
      }
@@ -636,7 +636,7 @@ public class frame extends JFrame implements ListSelectionListener {
636 636
      if(animList.getSelectedIndex() == -1){
637 637
        errorMessage("Select an animation.");
638 638
      } else if(frameList.getSelectedIndex() == -1){
639
-       errorMessage("Select a frame.");
639
+       errorMessage("Select a Frame.");
640 640
      } else {
641 641
        worker.removeFrame(animList.getSelectedIndex(), frameList.getSelectedIndex());
642 642
        frameRemaining.setText(Integer.toString(worker.framesRemaining()));
@@ -766,7 +766,7 @@ public class frame extends JFrame implements ListSelectionListener {
766 766
   }
767 767
 
768 768
   public static void main(String[] args) {
769
-    frame f = new frame("Cube Control");
769
+    Frame f = new Frame("Cube Control");
770 770
   Led3D l = f.get3D();
771 771
   java.util.Scanner sc = new java.util.Scanner(System.in);
772 772
 

Loading…
Cancel
Save