1 4 package com.tc.admin; 5 6 import java.net.URL ; 7 8 import javax.swing.Icon ; 9 import javax.swing.ImageIcon ; 10 11 public class BaseHelper { 12 protected Icon m_refreshIcon; 13 14 protected static final String ICONS_PATH = "/com/tc/admin/icons/"; 15 16 public Icon getRefreshIcon() { 17 if(m_refreshIcon == null) { 18 URL url = getClass().getResource(ICONS_PATH+"refresh.gif"); 19 m_refreshIcon = new ImageIcon (url); 20 } 21 22 return m_refreshIcon; 23 } 24 } 25 | Popular Tags |