1 22 package org.enhydra.kelp.common.swing; 23 24 import javax.swing.ImageIcon ; 26 public class KelpIconSet { 28 private static final String LARGE_GIF = 30 "org/enhydra/kelp/common/swing/media/largeicon.gif"; private static final String SMALL_GIF = 32 "org/enhydra/kelp/common/swing/media/smallicon.gif"; 34 public KelpIconSet() {} 35 36 public static ImageIcon getLargeIcon() { 37 ImageIcon icon = null; 38 icon = new ImageIcon (ClassLoader.getSystemResource(KelpIconSet.LARGE_GIF)); 39 return icon; 40 } 41 42 public static ImageIcon getSmallIcon() { 43 ImageIcon icon = null; 44 icon = new ImageIcon (ClassLoader.getSystemResource(KelpIconSet.SMALL_GIF)); 45 return icon; 46 } 47 } 48 | Popular Tags |