Skip to content

Conversation

@ilkivoo
Copy link
Owner

@ilkivoo ilkivoo commented May 4, 2018

No description provided.

textField.setText("You win =)");
Button ok = CreateElements.createButton(gridPane, 100, 100, 2, 6, "Exit");
ok.setOnAction(actionEvent -> {
Platform.exit();
Copy link

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) {
Copy link

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());
Copy link

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));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

минимальный размер формы тоже стоит задавать, а то получается вот так:
image

@jzuken
Copy link

jzuken commented May 23, 2018

9 баллов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants