且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JAR到EXE转换器?

更新时间:2023-01-01 11:14:52

尝试 JSmooth launch4j

两者都是免费的,允许你创建java可执行文件,并会自动在用户的工作站上查找/下载JRE。

Both are free and will allow you to create java executable, and will automatically find / download JRE on users' workstations.

另请注意,Java应用程序的外观取决于您。您使用

Also note, that the look-and-feel of your Java application is up to you. You declare the look and feel using

UIManager.setLookAndFeel(
        UIManager.getCrossPlatformLookAndFeelClassName());

这样你就可以替换默认的外观(我认为是金属)。
将它放在 main()方法的最开头(或者至少在swing初始化之前)。

and this way you replace default look-and-feel (which i think is Metal). Place it somewhere at the very beginning of your main() method (or at least before swing initializes).

另请阅读其他改变Java外观的方法