|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.mainframe.alphafine.preview; |
|
|
|
package com.fr.design.mainframe.alphafine.preview; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.bulenkov.iconloader.IconLoader; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
import com.fr.general.FRFont; |
|
|
|
import com.fr.general.FRFont; |
|
|
@ -11,14 +12,14 @@ import java.awt.*; |
|
|
|
* Created by XiaXiang on 2017/8/14. |
|
|
|
* Created by XiaXiang on 2017/8/14. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class NoResultPane extends JPanel { |
|
|
|
public class NoResultPane extends JPanel { |
|
|
|
public NoResultPane(String title, Icon icon) { |
|
|
|
public NoResultPane(String title, String iconUrl) { |
|
|
|
setLayout(new BorderLayout()); |
|
|
|
setLayout(new BorderLayout()); |
|
|
|
setBackground(Color.white); |
|
|
|
setBackground(Color.white); |
|
|
|
setPreferredSize(new Dimension(AlphaFineConstants.LEFT_WIDTH, AlphaFineConstants.CONTENT_HEIGHT)); |
|
|
|
setPreferredSize(new Dimension(AlphaFineConstants.LEFT_WIDTH, AlphaFineConstants.CONTENT_HEIGHT)); |
|
|
|
UILabel image = new UILabel(); |
|
|
|
UILabel image = new UILabel(); |
|
|
|
image.setPreferredSize(new Dimension(150, 111)); |
|
|
|
image.setPreferredSize(new Dimension(150, 111)); |
|
|
|
image.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
image.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
image.setIcon(icon); |
|
|
|
image.setIcon(IconLoader.getIcon(iconUrl)); |
|
|
|
image.setBorder(BorderFactory.createEmptyBorder(100,0,0,0)); |
|
|
|
image.setBorder(BorderFactory.createEmptyBorder(100,0,0,0)); |
|
|
|
UILabel description = new UILabel(title); |
|
|
|
UILabel description = new UILabel(title); |
|
|
|
description.setForeground(AlphaFineConstants.MEDIUM_GRAY); |
|
|
|
description.setForeground(AlphaFineConstants.MEDIUM_GRAY); |
|
|
|