Browse Source

支持gif动画,之前改错了

master
XiaXiang 7 years ago
parent
commit
a805b30310
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/cell/render/TitleCellRender.java

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

@ -33,7 +33,7 @@ public class TitleCellRender implements ListCellRenderer<Object> {
panel.add(showMoreLabel, BorderLayout.EAST);
}
if (moreModel.isLoading()) {
ImageIcon imageIcon = (ImageIcon) IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/loading.gif");
ImageIcon imageIcon = new ImageIcon(getClass().getResource("/com/fr/design/mainframe/alphafine/images/loading.gif"));
//设置cell的加载动画
imageIcon.setImageObserver(list);
UILabel loadingLabel = new UILabel(imageIcon);

Loading…
Cancel
Save