Skip to content

Commit

Permalink
Update HelloController.java
Browse files Browse the repository at this point in the history
修改单词长度范围为0到46
  • Loading branch information
iammmmmmm authored Nov 2, 2024
1 parent 8370801 commit 353d805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/caidanci/HelloController.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void initialize() {
info.setGraphic(new FontIcon(BootstrapIcons.INFO_CIRCLE));
gameIsStart = false;
startGame();
SpinnerValueFactory<Integer> valueFactory = new SpinnerValueFactory.IntegerSpinnerValueFactory(3, 10, wordLength);
SpinnerValueFactory<Integer> valueFactory = new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 46, wordLength);
levelChose.setValueFactory(valueFactory);
levelChose.valueProperty().addListener((observable, oldValue, newValue) -> {
wordLength = newValue;
Expand Down

0 comments on commit 353d805

Please sign in to comment.