summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/Utils.java
diff options
context:
space:
mode:
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);
+ }
+}