Revision 1322 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.swing/org.gvsig.raster.swing.impl/src/main/java/org/gvsig/raster/swing/impl/openfile/OpenFileContainerImpl.java
OpenFileContainerImpl.java | ||
---|---|---|
97 | 97 |
icon = IconThemeHelper.getImageIcon("icon-folder-open"); |
98 | 98 |
} catch (Exception e) { |
99 | 99 |
} |
100 |
if(icon == null) |
|
100 |
if(icon == null || icon.getIconWidth() <= 0 || icon.getIconHeight() <= 0)
|
|
101 | 101 |
icon = new ImageIcon(System.getProperty("user.dir") + "/src/main/resources/images/icon-folder-open.gif", ""); |
102 | 102 |
|
103 | 103 |
jButton = new JButton(icon); |
Also available in: Unified diff