KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > BaseHelper


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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