|
|
@ -22,6 +22,9 @@ public class TemplateResourcePanel extends JPanel { |
|
|
|
private JPanel southPane; |
|
|
|
private JPanel southPane; |
|
|
|
private TemplateResource templateResource; |
|
|
|
private TemplateResource templateResource; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final Color PANEL_BORDER_COLOR = new Color(0xe8e8e9); |
|
|
|
|
|
|
|
private static final Color DEMO_LABEL_FOREGROUND = new Color(0x419bf9); |
|
|
|
|
|
|
|
|
|
|
|
protected TemplateResourcePanel() { |
|
|
|
protected TemplateResourcePanel() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -30,7 +33,7 @@ public class TemplateResourcePanel extends JPanel { |
|
|
|
this.templateResource = templateResource; |
|
|
|
this.templateResource = templateResource; |
|
|
|
initComponent(); |
|
|
|
initComponent(); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setBorder(BorderFactory.createLineBorder(new Color(0xe8e8e9), 1)); |
|
|
|
this.setBorder(BorderFactory.createLineBorder(PANEL_BORDER_COLOR, 1)); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(southPane, BorderLayout.SOUTH); |
|
|
|
this.add(southPane, BorderLayout.SOUTH); |
|
|
|
addAction(); |
|
|
|
addAction(); |
|
|
@ -93,7 +96,7 @@ public class TemplateResourcePanel extends JPanel { |
|
|
|
JLabel demoLabel = new JLabel(); |
|
|
|
JLabel demoLabel = new JLabel(); |
|
|
|
if (templateResource.hasDemoUrl()) { |
|
|
|
if (templateResource.hasDemoUrl()) { |
|
|
|
demoLabel.setText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Template_Resource_Demo")); |
|
|
|
demoLabel.setText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Template_Resource_Demo")); |
|
|
|
demoLabel.setForeground(new Color(0x419bf9)); |
|
|
|
demoLabel.setForeground(DEMO_LABEL_FOREGROUND); |
|
|
|
demoLabel.addMouseListener(new MouseAdapter() { |
|
|
|
demoLabel.addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|