更改 Java 桌面应用程序标题栏中显示的图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5283024/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 10:24:29  来源:igfitidea点击:

change icon displayed in title bar for a java desktop app

javanetbeansiconsdesktop-applicationtitlebar

提问by Mihaela

I have a Java Desktop Application project created with NetBeans. The icon that is displayed in my main window's titlebar, by default, is the java logo. The same logo is displayed when I minimize this window to the Taskbar.

我有一个用 NetBeans 创建的 Java 桌面应用程序项目。默认情况下,显示在我的主窗口标题栏中的图标是 java 徽标。当我将此窗口最小化到任务栏时,会显示相同的徽标。

I would like to change this icon with one specific to my application, but didn't find how.

我想用一个特定于我的应用程序的图标来更改这个图标,但没有找到如何。

Thanks

谢谢