Browse Source

Removed vim bugger file *whoopsy* and added toggleLegsButton to fullscreenmode

Max Nuding 12 years ago
parent
commit
4201c11fa4
2 changed files with 16 additions and 0 deletions
  1. BIN
      CubeControl/.Frame.java.swp
  2. 16
    0
      CubeControl/Frame.java

BIN
CubeControl/.Frame.java.swp View File


+ 16
- 0
CubeControl/Frame.java View File

46
 	private JButton editH = new JButton();
46
 	private JButton editH = new JButton();
47
 	private JButton[] editButtons = { editA, editB, editC, editD, editE, editF, editG, editH };
47
 	private JButton[] editButtons = { editA, editB, editC, editD, editE, editF, editG, editH };
48
 	private JButton toggleLegsButton = new JButton();
48
 	private JButton toggleLegsButton = new JButton();
49
+	private JButton toggleLegsButtonFullscreen = new JButton();
49
 	private DefaultListModel frameListModel = new DefaultListModel();
50
 	private DefaultListModel frameListModel = new DefaultListModel();
50
 	public JList frameList = new JList();
51
 	public JList frameList = new JList();
51
 	private JScrollPane frameListScrollPane = new JScrollPane(frameList);
52
 	private JScrollPane frameListScrollPane = new JScrollPane(frameList);
99
 		ledView.toggleLegs();
100
 		ledView.toggleLegs();
100
 		if(showLegs) {
101
 		if(showLegs) {
101
 			toggleLegsButton.setText("Show legs");
102
 			toggleLegsButton.setText("Show legs");
103
+			toggleLegsButtonFullscreen.setText("Show legs");
102
 		} else {
104
 		} else {
103
 			toggleLegsButton.setText("Hide legs");
105
 			toggleLegsButton.setText("Hide legs");
106
+			toggleLegsButtonFullscreen.setText("Hide legs");
104
 		}
107
 		}
105
 		showLegs = !showLegs;
108
 		showLegs = !showLegs;
106
 	}
109
 	}
583
 				int h = Toolkit.getDefaultToolkit().getScreenSize().height;
586
 				int h = Toolkit.getDefaultToolkit().getScreenSize().height;
584
 				setSize(w - 5, h - 30);
587
 				setSize(w - 5, h - 30);
585
 				playAnimationFullscreen.setVisible(true);
588
 				playAnimationFullscreen.setVisible(true);
589
+				toggleLegsButtonFullscreen.setVisible(true);
586
 				cubeCanvas.setBounds(0, 0, w - 5, h - 80);
590
 				cubeCanvas.setBounds(0, 0, w - 5, h - 80);
587
 			}
591
 			}
588
 		});
592
 		});
593
 		exitButton.addActionListener(new ActionListener() {
597
 		exitButton.addActionListener(new ActionListener() {
594
 			public void actionPerformed(ActionEvent evt) {
598
 			public void actionPerformed(ActionEvent evt) {
595
 				playAnimationFullscreen.setVisible(false);
599
 				playAnimationFullscreen.setVisible(false);
600
+				toggleLegsButtonFullscreen.setVisible(false);
596
 				setLocation(0,0);
601
 				setLocation(0,0);
597
 				setSize(672, 656);
602
 				setSize(672, 656);
598
 				ledView.leaveFullscreen();
603
 				ledView.leaveFullscreen();
622
 				playAnimation();
627
 				playAnimation();
623
 			}
628
 			}
624
 		});
629
 		});
630
+
631
+		toggleLegsButtonFullscreen.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-470, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
632
+		toggleLegsButtonFullscreen.setText("Hide legs");
633
+		toggleLegsButtonFullscreen.setVisible(false);
634
+		cp.add(toggleLegsButtonFullscreen);
635
+		toggleLegsButtonFullscreen.addActionListener(new ActionListener(){
636
+			public void actionPerformed(ActionEvent evt){
637
+				toggleLegs();
638
+			}
639
+		});
640
+
625
 	
641
 	
626
 	
642
 	
627
 		frameDuration.setBounds(462, 129, 65, 20);
643
 		frameDuration.setBounds(462, 129, 65, 20);

Loading…
Cancel
Save