Browse Source

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
master
metasim 24 years ago
parent
commit
0fec24953f
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java

+ 1
- 3
src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java View File

@@ -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);
}


Loading…
Cancel
Save