Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java11+工具窗口显示不完整 #10

Open
0xtlu opened this issue Jun 9, 2024 · 1 comment
Open

Java11+工具窗口显示不完整 #10

0xtlu opened this issue Jun 9, 2024 · 1 comment

Comments

@0xtlu
Copy link

0xtlu commented Jun 9, 2024

java11 -jar PotatoTool.jar 运行后无法看到完整工具界面,屏幕分辨率为1160*642。
image

应该是屏幕比较垃圾,修改分辨率为1600*1200后重新运行可显示完整,但系统会出现滚动条导致操作麻烦。
image

还发现,运行是会出现告警,我不确定是否和它有关:
$ java11 -jar PotatoTool.jar
x月 xx, 2024 xxx 下午 com.sun.javafx.application.PlatformImpl startup
警告: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @50b9b473'

经过引入javafx-sdk-11后,不在出现如上告警,但窗口无法完全显示
java11 --module-path ..\jdk-11\javafx-sdk-11\lib --add-modules javafx.controls,javafx.fxml -jar PotatoTool.jar

@ljy1058318852
Copy link
Contributor

告警是因为非模块化,可忽略。已内置javafx,无需手动添加(除非是mac的M系列,下个版本1.2已兼容)。

屏幕尺寸兼容也将在下个版本1.2完善

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants