summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/Utils.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2005-06-30 19:25:26 +0000
committerBernard Normier <bernard@zeroc.com>2005-06-30 19:25:26 +0000
commit685bc67bd5f7ee487ce4477a4b28815411aef2cd (patch)
tree572cfb9eed061fffc3f0d81143f005f700cd45fa /java/src/IceGrid/Utils.java
parentmore icons (diff)
downloadice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.tar.bz2
ice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.tar.xz
ice-685bc67bd5f7ee487ce4477a4b28815411aef2cd.zip
Observer implementation
Diffstat (limited to 'java/src/IceGrid/Utils.java')
-rwxr-xr-xjava/src/IceGrid/Utils.java22
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);
+ }
+}