Skip to content

Commit

Permalink
更新 HelloController.java
Browse files Browse the repository at this point in the history
再次尝试
  • Loading branch information
iammmmmmm authored Oct 27, 2024
1 parent c132faf commit 8370801
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 @@ -204,7 +204,7 @@ private boolean checkWord(String word) {
void initialize() {

Font a = Font.loadFont(Objects.requireNonNull(this.getClass().getResourceAsStream("fonts/fzjt.ttf")), 0);
showAlert(Alert.AlertType.WARNING, "错误!", "!", "font.getFamily:" + a.getFamily()+"!");
Platform.runLater(() -> showAlert(Alert.AlertType.WARNING, "错误!", "!", "font.getFamily:" + a.getFamily()+"!"));
Platform.runLater(() -> tm.setFontFamily(a.getFamily()));
Platform.runLater(() -> tm.addScene(info.getScene()));

Expand Down

0 comments on commit 8370801

Please sign in to comment.