|
|
@ -40,7 +40,7 @@ public class ReuseGuideDialog extends UIDialog implements PromptWindow { |
|
|
|
JPanel backGroundPane = new JPanel() { |
|
|
|
JPanel backGroundPane = new JPanel() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
Image icon = IOUtils.readImage("com/fr/plugin/form/images/background.png");// 003.jpg是测试图片在项目的根目录下
|
|
|
|
Image icon = IOUtils.readImage("com/fr/base/images/share/background.png");// 003.jpg是测试图片在项目的根目录下
|
|
|
|
g.drawImage(icon, 0, 0, getSize().width, getSize().height, this);// 图片会自动缩放
|
|
|
|
g.drawImage(icon, 0, 0, getSize().width, getSize().height, this);// 图片会自动缩放
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -91,7 +91,7 @@ public class ReuseGuideDialog extends UIDialog implements PromptWindow { |
|
|
|
JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); |
|
|
|
JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); |
|
|
|
|
|
|
|
|
|
|
|
//右上角关闭按钮
|
|
|
|
//右上角关闭按钮
|
|
|
|
JButton button = new JButton(new ImageIcon(IOUtils.readImage("/com/fr/plugin/form/images/close.png").getScaledInstance(15, 15, Image.SCALE_SMOOTH))); |
|
|
|
JButton button = new JButton(new ImageIcon(IOUtils.readImage("/com/fr/base/images/share/close.png").getScaledInstance(15, 15, Image.SCALE_SMOOTH))); |
|
|
|
button.setBorder(null); |
|
|
|
button.setBorder(null); |
|
|
|
button.setOpaque(false); |
|
|
|
button.setOpaque(false); |
|
|
|
button.addActionListener(e -> ReuseGuideDialog.this.hideWindow()); |
|
|
|
button.addActionListener(e -> ReuseGuideDialog.this.hideWindow()); |
|
|
@ -105,8 +105,8 @@ public class ReuseGuideDialog extends UIDialog implements PromptWindow { |
|
|
|
private JPanel createCenterPanel() { |
|
|
|
private JPanel createCenterPanel() { |
|
|
|
JPanel centerPanel = new JPanel(new BorderLayout()); |
|
|
|
JPanel centerPanel = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
|
|
UILabel titleLabel = new UILabel(Toolkit.i18nText("Fine-Plugin_Component_Drag_And_Make_Component")); |
|
|
|
UILabel titleLabel = new UILabel(Toolkit.i18nText("Fine-Design_Share_Drag_And_Make_Component")); |
|
|
|
UILabel imageLabel = new UILabel(new ImageIcon(IOUtils.readImage("com/fr/plugin/form/images/guide.png").getScaledInstance(DEFAULT.width, DEFAULT.height, Image.SCALE_SMOOTH))); |
|
|
|
UILabel imageLabel = new UILabel(new ImageIcon(IOUtils.readImage("com/fr/base/images/share/guide.png").getScaledInstance(DEFAULT.width, DEFAULT.height, Image.SCALE_SMOOTH))); |
|
|
|
titleLabel.setFont(new Font(titleLabel.getFont().getName(), Font.BOLD, TITLE_FONT_SIZE)); |
|
|
|
titleLabel.setFont(new Font(titleLabel.getFont().getName(), Font.BOLD, TITLE_FONT_SIZE)); |
|
|
|
titleLabel.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
titleLabel.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
|
|
|
|
|
|
|
@ -124,7 +124,7 @@ public class ReuseGuideDialog extends UIDialog implements PromptWindow { |
|
|
|
private JPanel createSouthPanel() { |
|
|
|
private JPanel createSouthPanel() { |
|
|
|
JPanel southPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel southPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
|
|
|
|
JButton button = new JButton(Toolkit.i18nText("Fine-Plugin_Component_Try_Drag")) { |
|
|
|
JButton button = new JButton(Toolkit.i18nText("Fine-Design_Share_Try_Drag")) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void paint(Graphics g) { |
|
|
|
public void paint(Graphics g) { |
|
|
|
ColorBackground buttonBackground = ColorBackground.getInstance(Color.decode("#419BF9")); |
|
|
|
ColorBackground buttonBackground = ColorBackground.getInstance(Color.decode("#419BF9")); |
|
|
|