|
|
|
@ -36,6 +36,7 @@ public class Calculater extends Application {
|
|
|
|
|
primaryStage.setTitle("Calculator");
|
|
|
|
|
primaryStage.setScene(scene);
|
|
|
|
|
primaryStage.show();
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private GridPane createButtonGrid() {
|
|
|
|
@ -56,7 +57,6 @@ public class Calculater extends Application {
|
|
|
|
|
// Set button size
|
|
|
|
|
int buttonSize = 50;
|
|
|
|
|
|
|
|
|
|
// Add buttons to the grid
|
|
|
|
|
int row = 0;
|
|
|
|
|
for (int i = 0; i < buttonText.length; i++) {
|
|
|
|
|
for (int j = 0; j < buttonText[i].length; j++) {
|
|
|
|
|