dont show the thalble
This commit is contained in:
parent
14e2fce7c4
commit
af4603ea26
@ -39,7 +39,7 @@ public class ViewController {
|
|||||||
selectBox.getSelectionModel().selectedItemProperty().addListener((_, _, newVal) -> loadQuestions(newVal));
|
selectBox.getSelectionModel().selectedItemProperty().addListener((_, _, newVal) -> loadQuestions(newVal));
|
||||||
questionListView.getSelectionModel().selectedItemProperty().addListener((_, _, newVal) -> updateCurrentQuestion(newVal));
|
questionListView.getSelectionModel().selectedItemProperty().addListener((_, _, newVal) -> updateCurrentQuestion(newVal));
|
||||||
|
|
||||||
editButton.textProperty().bind(Bindings.when(isInEditState).then("Edit").otherwise("Save"));
|
editButton.textProperty().bind(Bindings.when(isInEditState.not()).then("Edit").otherwise("Save"));
|
||||||
questionField.editableProperty().bind(isInEditState);
|
questionField.editableProperty().bind(isInEditState);
|
||||||
answerField.editableProperty().bind(isInEditState);
|
answerField.editableProperty().bind(isInEditState);
|
||||||
deleteButton.disableProperty().bind(isInEditState);
|
deleteButton.disableProperty().bind(isInEditState);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user