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 HelpHelper extends BaseHelper {
12: private static HelpHelper m_helper = new HelpHelper();
13: private Icon m_helpIcon;
14:
15: public static HelpHelper getHelper() {
16: return m_helper;
17: }
18:
19: public Icon getHelpIcon() {
20: if (m_helpIcon == null) {
21: URL url = getClass().getResource(ICONS_PATH + "help.gif");
22:
23: if (url != null) {
24: m_helpIcon = new ImageIcon(url);
25: }
26: }
27:
28: return m_helpIcon;
29: }
30: }
|