01: /*
02: * @(#)OverlayableIconsFactory.java 8/10/2007
03: *
04: * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.swing;
08:
09: import com.jidesoft.icons.IconsFactory;
10:
11: import javax.swing.*;
12:
13: /**
14: * A helper class to contain icons for the overlayable components
15: * Those icons are copyrighted by JIDE Software, Inc.
16: */
17: public class OverlayableIconsFactory {
18: public static final String ATTENTION = "icons/overlay_attention.png";
19: public static final String CORRECT = "icons/overlay_correct.png";
20: public static final String ERROR = "icons/overlay_error.png";
21: public static final String INFO = "icons/overlay_info.png";
22: public static final String QUESTION = "icons/overlay_question.png";
23:
24: public static ImageIcon getImageIcon(String name) {
25: if (name != null)
26: return IconsFactory.getImageIcon(
27: OverlayableIconsFactory.class, name);
28: else
29: return null;
30: }
31:
32: public static void main(String[] argv) {
33: IconsFactory.generateHTML(OverlayableIconsFactory.class);
34: }
35:
36: }
|