-
Notifications
You must be signed in to change notification settings - Fork 0
Test #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| textField.setText("You win =)"); | ||
| Button ok = CreateElements.createButton(gridPane, 100, 100, 2, 6, "Exit"); | ||
| ok.setOnAction(actionEvent -> { | ||
| Platform.exit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
было бы неплохо что-то говорить пользователю всё же. а то вот ввёл я нечётное N, а оно просто закрылось молча
| * @return true - if exist close cells, else - false | ||
| */ | ||
| public boolean isEmptyButtons(String[] buttons) { | ||
| for (String button : buttons) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это можно было бы красиво записать одной строчкой через стрим
| openButton.setDisable(true); | ||
| } else { | ||
| openButton.setText(openString); | ||
| button.setText(((Integer) values[i]).toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну вообще предполагалось, что текст на кнопке сразу будет виден, как только на кнопку нажали. а то сейчас надо нажать обе, и только потом мелькнут значения
|
|
||
|
|
||
| }); | ||
| primaryStage.setScene(new Scene(gridPane, 600, 400)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
9 баллов |

No description provided.