juhaoyu 8 years ago
parent
commit
628f655e1a
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java

2
designer/src/com/fr/design/mainframe/alphafine/cell/render/ContentCellRender.java

@ -34,7 +34,7 @@ public class ContentCellRender implements ListCellRenderer<Object> {
AlphaCellModel model = (AlphaCellModel) value; AlphaCellModel model = (AlphaCellModel) value;
name.setText(model.getName()); name.setText(model.getName());
String iconUrl = "/com/fr/design/mainframe/alphafine/images/alphafine" + model.getType().getTypeValue() + ".png"; String iconUrl = "/com/fr/design/mainframe/alphafine/images/alphafine" + model.getType().getTypeValue() + ".png";
name.setIcon(new ImageIcon(IOUtils.getResource(iconUrl, getClass()))); name.setIcon(IOUtils.readIcon(iconUrl));
name.setFont(AlphaFineConstants.MEDIUM_FONT); name.setFont(AlphaFineConstants.MEDIUM_FONT);
name.setForeground(AlphaFineConstants.BLACK); name.setForeground(AlphaFineConstants.BLACK);
name.setVerticalTextPosition(SwingConstants.CENTER); name.setVerticalTextPosition(SwingConstants.CENTER);

Loading…
Cancel
Save