Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,Java Swing 应用程序的左上角出现 Java 咖啡杯图标。
我想用我自己的图像替换它 - 使用什么 API?
这可以在运行时完成,还是必须在安装时完成?
谢谢!
JFrame.setIconImage(Image image)正是这样做的。
查看setIconImage方法。