Pictures and icons used within an application are not loaded over the installer, but over a
central ImageUtilities class in the NetBeans world. The method loadImage() should be used.
An icon manager manages images and icons, preventing repeated loading of resources.
Use it to load icons from all available modules. It is also possible to load localized resources, as
in the following example. If the second parameter is set to true and there is an icon named
icon_de_DE.png available, then it is loaded (if the locale setting of application is de_DE):
Image img = ImageUtilities.loadImage("resources/icon.png", true);
posted on 2011-10-18 12:38  网络大豆  阅读(322)  评论(0编辑  收藏  举报