Parcourir la source

extra 4 buttons

Seth il y a 6 ans
Parent
révision
7039d0acce
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/main/java/rocks/zipcode/calcskin/CalcSkin.java

+ 2
- 2
src/main/java/rocks/zipcode/calcskin/CalcSkin.java Voir le fichier

84
         screen.setStyle("-fx-background-color: red;");
84
         screen.setStyle("-fx-background-color: red;");
85
         screen.setAlignment(Pos.CENTER_RIGHT);
85
         screen.setAlignment(Pos.CENTER_RIGHT);
86
         screen.setEditable(false);
86
         screen.setEditable(false);
87
-        screen.textProperty().bind(Bindings.format("%.0f", currentValue));
87
+        screen.textProperty().bind(Bindings.format("%.4f", currentValue));
88
         return screen;
88
         return screen;
89
     }
89
     }
90
 
90
 
118
                 makeSquareButton(button);
118
                 makeSquareButton(button);
119
             } else if ("√x".equals(s)) {
119
             } else if ("√x".equals(s)) {
120
                 makeRootButton(button);
120
                 makeRootButton(button);
121
-            } else if ("1/x".equals(button)){
121
+            } else if ("1/x".equals(s)){
122
                 makeInverseButton(button);
122
                 makeInverseButton(button);
123
             }
123
             }
124
         }
124
         }