1 9 10 package org.netbeans.modules.java.navigation.base; 11 12 import java.awt.Image ; 13 import javax.swing.Icon ; 14 import javax.swing.ImageIcon ; 15 import org.openide.util.Utilities; 16 17 22 public class Icons { 23 24 private static final String GIF_EXTENSION = ".gif"; private static final String ICON_BASE = "org/netbeans/modules/java/navigation/resources"; private static final String WAIT = ICON_BASE + "wait" + GIF_EXTENSION; 28 29 public Icons() { 30 } 31 32 public static Icon getBusyIcon () { 33 Image img = Utilities.loadImage (WAIT); 34 if (img == null) { 35 return null; 36 } 37 else { 38 return new ImageIcon (img); 39 } 40 } 41 42 } 43 | Popular Tags |