随笔 - 630  文章 - 7 评论 - 47 阅读 - 49万
< 2025年1月 >
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1
2 3 4 5 6 7 8

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   网络大豆  阅读(325)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示