From 5c50c39cdc9949cb6ab6d143a8b90db57f60212f Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 21 Jun 2017 11:46:12 +0800 Subject: [PATCH] rt --- .../mainframe/alphafine/cell/render/ContentCellRender.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java b/designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java index f5369a9c5a..ca97c6a077 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java +++ b/designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java @@ -4,6 +4,7 @@ import com.fr.design.gui.ilable.UILabel; import com.fr.design.mainframe.alphafine.AlphaFineConstants; import com.fr.design.mainframe.alphafine.cell.model.AlphaCellModel; import com.fr.design.mainframe.alphafine.cell.model.MoreModel; +import com.fr.general.IOUtils; import com.fr.stable.StringUtils; import javax.swing.*; @@ -40,7 +41,7 @@ public class ContentCellRender implements ListCellRenderer { name.setIcon(null); name.setForeground(AlphaFineConstants.MEDIUM_GRAY); } else { - name.setIcon(new ImageIcon(getClass().getResource(iconUrl))); + name.setIcon(new ImageIcon(IOUtils.readImage(iconUrl))); name.setForeground(AlphaFineConstants.BLACK); } name.setFont(AlphaFineConstants.MEDIUM_FONT);