|
@@ -24,10 +24,10 @@ public class CalcSkin extends Application {
|
24
|
24
|
launch(args);
|
25
|
25
|
}
|
26
|
26
|
private static final String[][] template = {
|
27
|
|
- { "7", "8", "9", "/" },
|
28
|
|
- { "4", "5", "6", "*" },
|
29
|
|
- { "1", "2", "3", "-" },
|
30
|
|
- { "0", "c", "=", "+" }
|
|
27
|
+ {"7", "8", "9", "/" },
|
|
28
|
+ {"4", "5", "6", "*" },
|
|
29
|
+ {"1", "2", "3", "-" },
|
|
30
|
+ {"0", "c", "=", "+" }
|
31
|
31
|
};
|
32
|
32
|
|
33
|
33
|
private final Map<String, Button> accelerators = new HashMap<>();
|
|
@@ -50,7 +50,7 @@ public class CalcSkin extends Application {
|
50
|
50
|
final TextField screen = createScreen();
|
51
|
51
|
final TilePane buttons = createButtons();
|
52
|
52
|
|
53
|
|
- stage.setTitle("Calc");
|
|
53
|
+ stage.setTitle("Calculator");
|
54
|
54
|
stage.initStyle(StageStyle.UTILITY);
|
55
|
55
|
stage.setResizable(false);
|
56
|
56
|
stage.setScene(new Scene(createLayout(screen, buttons)));
|