Revision 3001 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.api/src/main/java/org/gvsig/tools/swing/api/ToolsSwingUtils.java
ToolsSwingUtils.java | ||
---|---|---|
411 | 411 |
ActionListener actionListener, |
412 | 412 |
FocusListener focusListener |
413 | 413 |
) { |
414 |
if( button.getIcon()==null ) { |
|
414 |
if( button.getIcon()==null && image != null) {
|
|
415 | 415 |
IconThemeManager iconThemeManager = ToolsSwingLocator.getIconThemeManager(); |
416 | 416 |
IconTheme theme = iconThemeManager.getCurrent(); |
417 | 417 |
ImageIcon icon = theme.get(image); |
Also available in: Unified diff