dont show the thalble
This commit is contained in:
parent
3c5f9c7bbf
commit
14e2fce7c4
@ -21,6 +21,8 @@ import java.util.ArrayList;
|
|||||||
|
|
||||||
public class TestController {
|
public class TestController {
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Label correctAnswerLable;
|
||||||
@FXML
|
@FXML
|
||||||
private Button nextQuestionBtn;
|
private Button nextQuestionBtn;
|
||||||
@FXML
|
@FXML
|
||||||
@ -66,6 +68,7 @@ public class TestController {
|
|||||||
startBtn.textProperty().bind(Bindings.when(isInConfiguringState).then("Start").otherwise("Cancle"));
|
startBtn.textProperty().bind(Bindings.when(isInConfiguringState).then("Start").otherwise("Cancle"));
|
||||||
nextQuestionBtn.disableProperty().bind(isInConfiguringState);
|
nextQuestionBtn.disableProperty().bind(isInConfiguringState);
|
||||||
nextQuestionBtn.visibleProperty().bind(isInCorrectionState.not());
|
nextQuestionBtn.visibleProperty().bind(isInCorrectionState.not());
|
||||||
|
correctAnswerLable.visibleProperty().bind(isInCorrectionState);
|
||||||
|
|
||||||
Bindings.bindBidirectional(questionCountField.textProperty(), questionSlider.valueProperty(), new NumberStringConverter());
|
Bindings.bindBidirectional(questionCountField.textProperty(), questionSlider.valueProperty(), new NumberStringConverter());
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<!-- Correct Answer Display -->
|
<!-- Correct Answer Display -->
|
||||||
<VBox spacing="10" alignment="CENTER">
|
<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"
|
<TextArea fx:id="correctAnswerArea" editable="false" wrapText="true" prefHeight="100.0"
|
||||||
prefWidth="300.0"/>
|
prefWidth="300.0"/>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user