01: /*
02: * @(#)FileSystemIconsFactory.java 9/12/2005
03: *
04: * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.plaf.basic;/*
07: * @(#)CiscoIconsFactory.java 6/16/2005
08: *
09: * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
10: */
11:
12: import com.jidesoft.icons.IconsFactory;
13:
14: import javax.swing.*;
15:
16: /**
17: * A helper class to contain icons for demo of JIDE products.
18: * Those icons are copyrighted by JIDE Software, Inc.
19: */
20: public class BasicFolderChooserIconsFactory {
21:
22: public static class ToolBar {
23: public final static String NEW = "icons/new.png";
24: public final static String DELETE = "icons/delete.png";
25: public final static String HOME = "icons/home.png";
26: public final static String MY_DOCUMENT = "icons/myDocument.png";
27: public final static String DESKTOP = "icons/desktop.png";
28: }
29:
30: public static ImageIcon getImageIcon(String name) {
31: if (name != null)
32: return IconsFactory.getImageIcon(
33: BasicFolderChooserIconsFactory.class, name);
34: else
35: return null;
36: }
37:
38: public static void main(String[] argv) {
39: IconsFactory.generateHTML(BasicFolderChooserIconsFactory.class);
40: }
41:
42: }
|