01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin;
05:
06: import java.net.URL;
07:
08: import javax.swing.Icon;
09: 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()
19: .getResource(ICONS_PATH + "refresh.gif");
20: m_refreshIcon = new ImageIcon(url);
21: }
22:
23: return m_refreshIcon;
24: }
25: }
|