1.1 --- a/openide.util/src/org/openide/util/Utilities.java Thu Aug 10 08:49:51 2006 +0000
1.2 +++ b/openide.util/src/org/openide/util/Utilities.java Thu Aug 10 15:51:23 2006 +0000
1.3 @@ -2754,6 +2754,9 @@
1.4 * For example, requesting <samp>org/netbeans/modules/foo/resources/foo.gif</samp>
1.5 * might actually find <samp>org/netbeans/modules/foo/resources/foo_ja.gif</samp>
1.6 * or <samp>org/netbeans/modules/foo/resources/foo_mybranding.gif</samp>.
1.7 + *
1.8 + * <p>Caching of loaded images can be used internally to improve performance.
1.9 + *
1.10 * @since 3.24
1.11 */
1.12 public static final Image loadImage(String resource, boolean localized) {
1.13 @@ -2799,13 +2802,13 @@
1.14
1.15 // First check for Mac because its part of the Unix_Mask
1.16 if (getOperatingSystem() == OS_MAC) {
1.17 - image = loadImage("org/openide/resources/progress-cursor-mac.gif"); //NOI18N
1.18 + image = loadImage("org/openide/util/progress-cursor-mac.gif"); //NOI18N
1.19 } else if (isUnix()) {
1.20 - image = loadImage("org/openide/resources/progress-cursor-motif.gif"); //NOI18N
1.21 + image = loadImage("org/openide/util/progress-cursor-motif.gif"); //NOI18N
1.22 }
1.23 // All other OS, including Windows, use Windows cursor
1.24 else {
1.25 - image = loadImage("org/openide/resources/progress-cursor-win.gif"); //NOI18N
1.26 + image = loadImage("org/openide/util/progress-cursor-win.gif"); //NOI18N
1.27 }
1.28
1.29 return createCustomCursor(component, image, "PROGRESS_CURSOR"); //NOI18N