dont show the thalble

This commit is contained in:
Jonas Hinterdorfer 2025-05-13 10:03:57 +02:00
parent 3c5f9c7bbf
commit 14e2fce7c4
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,8 @@ import java.util.ArrayList;
public class TestController {
@FXML
private Label correctAnswerLable;
@FXML
private Button nextQuestionBtn;
@FXML
@ -66,6 +68,7 @@ public class TestController {
startBtn.textProperty().bind(Bindings.when(isInConfiguringState).then("Start").otherwise("Cancle"));
nextQuestionBtn.disableProperty().bind(isInConfiguringState);
nextQuestionBtn.visibleProperty().bind(isInCorrectionState.not());
correctAnswerLable.visibleProperty().bind(isInCorrectionState);
Bindings.bindBidirectional(questionCountField.textProperty(), questionSlider.valueProperty(), new NumberStringConverter());

View File

@ -30,7 +30,7 @@
<!-- Correct Answer Display -->
<VBox spacing="10" alignment="CENTER">
<Label text="Correct Answer:" style="-fx-font-size: 14;"/>
<Label text="Correct Answer:" fx:id="correctAnswerLable" style="-fx-font-size: 14;"/>
<TextArea fx:id="correctAnswerArea" editable="false" wrapText="true" prefHeight="100.0"
prefWidth="300.0"/>
</VBox>