|
|
|
@ -24,11 +24,8 @@ public class Calculate extends Application {
|
|
|
|
|
display.setStyle("-fx-font-size: 30px;");
|
|
|
|
|
display.setMinWidth(200); // Adjust width for display
|
|
|
|
|
display.setAlignment(Pos.CENTER_RIGHT); // Align text to the right
|
|
|
|
|
|
|
|
|
|
// Set up the buttons
|
|
|
|
|
GridPane gridPane = createButtonGrid();
|
|
|
|
|
|
|
|
|
|
// Create the layout
|
|
|
|
|
VBox layout = new VBox(10);
|
|
|
|
|
layout.setPadding(new Insets(10));
|
|
|
|
|
layout.setAlignment(Pos.CENTER);
|
|
|
|
|