diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-06-30 19:25:26 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-06-30 19:25:26 +0000 |
commit | 685bc67bd5f7ee487ce4477a4b28815411aef2cd (patch) | |
tree | 572cfb9eed061fffc3f0d81143f005f700cd45fa /java/src/IceGrid/Utils.java | |
parent | more icons (diff) | |
download | ice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.tar.bz2 ice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.tar.xz ice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.zip |
Observer implementation
Diffstat (limited to 'java/src/IceGrid/Utils.java')
-rwxr-xr-x | java/src/IceGrid/Utils.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/src/IceGrid/Utils.java b/java/src/IceGrid/Utils.java new file mode 100755 index 00000000000..14d329c71ae --- /dev/null +++ b/java/src/IceGrid/Utils.java @@ -0,0 +1,22 @@ +// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+package IceGrid;
+
+import javax.swing.Icon;
+import javax.swing.ImageIcon;
+
+public class Utils
+{
+ static public Icon getIcon(String path)
+ {
+ java.net.URL imgURL = Utils.class.getResource(path);
+ assert(imgURL != null);
+ return new ImageIcon(imgURL);
+ }
+}
|