From 0fec24953fb3f027483289c9d68c8d4de3c85b2e Mon Sep 17 00:00:00 2001 From: metasim Date: Wed, 31 Jan 2001 19:32:11 +0000 Subject: [PATCH] Fixed bug with looking up resources under windows. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268551 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/gui/core/ResourceManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java b/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java index 3ed93eb43..16ff059d9 100644 --- a/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java +++ b/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java @@ -77,7 +77,7 @@ public class ResourceManager { /** Image path. */ private static final String IMG_PATH = - File.separator + RESOURCE_PKG.replace('.', File.separatorChar); + '/' + RESOURCE_PKG.replace('.', '/'); /** Resources to reference. */ private ResourceBundle _resources = null; @@ -312,9 +312,7 @@ public class ResourceManager { if(fileName == null) return null; ImageIcon icon = null; - URL location = getClass().getResource(IMG_PATH + "/" + fileName); - if(location != null) { icon = new ImageIcon(location); }