XiaXiang
8 years ago
7 changed files with 40 additions and 4 deletions
After Width: | Height: | Size: 6.5 KiB |
@ -1,8 +1,36 @@
|
||||
package com.fr.design.mainframe.alphafine.preview; |
||||
|
||||
|
||||
import com.fr.design.gui.ilable.UILabel; |
||||
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
||||
import com.fr.design.mainframe.alphafine.AlphaFineHelper; |
||||
import com.fr.general.IOUtils; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
|
||||
/** |
||||
* Created by XiaXiang on 2017/5/5. |
||||
*/ |
||||
public class ActionPreviewPane { |
||||
//todo:还没确定要不要使用面板截图
|
||||
public class ActionPreviewPane extends JPanel { |
||||
private static final Font NAME = new Font("Song_TypeFace",0,14); |
||||
public ActionPreviewPane() { |
||||
setLayout(new BorderLayout()); |
||||
setBackground(null); |
||||
setBorder(BorderFactory.createEmptyBorder(120,0,0,0)); |
||||
UILabel image = new UILabel(); |
||||
image.setPreferredSize(new Dimension(150,111)); |
||||
image.setHorizontalAlignment(SwingConstants.CENTER); |
||||
image.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); |
||||
image.setIcon(IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/noresult.png")); |
||||
UILabel name = new UILabel("暂不支持显示"); |
||||
name.setForeground(AlphaFineConstants.MEDIUM_GRAY); |
||||
name.setFont(NAME); |
||||
name.setBorder(BorderFactory.createEmptyBorder(10, 0, 10, 0)); |
||||
name.setHorizontalAlignment(SwingConstants.CENTER); |
||||
this.add(image, BorderLayout.CENTER); |
||||
this.add(name, BorderLayout.SOUTH); |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue