【发布时间】:2026-02-01 07:10:01
【问题描述】:
您好,我的日历有问题。
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
errorDialogue = new Alert(Alert.AlertType.ERROR);
dialogue = new TextInputDialog();
Group group = new Group();
Scene scene = new Scene(group, 650, 500);
readInput();
centerX = scene.getWidth() / 2;
centerY = scene.getHeight() / 2;
}
【问题讨论】:
-
你的问题/问题是?
-
我不知道如何从输入窗口中获取月份和年份,并让日历变得像想要的那样。
-
欢迎来到 Stack Overflow。恐怕您需要更具体地了解您的问题,以便我们能够为您提供帮助。看来您已经在代码中输入了内容,对吗?该部分是否按预期工作,如果没有,以哪种方式不工作?如果有的话,你能解释一下你制作日历的问题吗?
-
也请搜索。类似的问题已经被多次询问和回答,因此您很可能会找到一些指导和灵感。
-
我问你是否可以让你的问题更具体,现在你已经 less 具体了?投票结束。
标签: java javafx calendar java-time yearmonth