Browse Source

Fixed label of toggleLegsButton

Max Nuding 12 years ago
parent
commit
ff61aeb0bd
2 changed files with 4 additions and 3 deletions
  1. BIN
      CubeControl/.Frame.java.swp
  2. 4
    3
      CubeControl/Frame.java

BIN
CubeControl/.Frame.java.swp View File


+ 4
- 3
CubeControl/Frame.java View File

98
 	private void toggleLegs(){
98
 	private void toggleLegs(){
99
 		ledView.toggleLegs();
99
 		ledView.toggleLegs();
100
 		if(showLegs) {
100
 		if(showLegs) {
101
-			toggleLegsButton.setText("Beine aus");
101
+			toggleLegsButton.setText("Show legs");
102
 		} else {
102
 		} else {
103
-			toggleLegsButton.setText("Beine ein");
103
+			toggleLegsButton.setText("Hide legs");
104
 		}
104
 		}
105
+		showLegs = !showLegs;
105
 	}
106
 	}
106
 
107
 
107
 	private int saveExitDialog() {
108
 	private int saveExitDialog() {
368
 		}
369
 		}
369
 
370
 
370
 		toggleLegsButton.setBounds(299, 312, 102, 34);
371
 		toggleLegsButton.setBounds(299, 312, 102, 34);
371
-		toggleLegsButton.setText("Beine aus");
372
+		toggleLegsButton.setText("Hide legs");
372
 		cp.add(toggleLegsButton);
373
 		cp.add(toggleLegsButton);
373
 		toggleLegsButton.addActionListener(new ActionListener(){
374
 		toggleLegsButton.addActionListener(new ActionListener(){
374
 			public void actionPerformed(ActionEvent evt){
375
 			public void actionPerformed(ActionEvent evt){

Loading…
Cancel
Save