|
|
|
@ -22,6 +22,9 @@ public class TemplateResourcePanel extends JPanel {
|
|
|
|
|
private JPanel southPane; |
|
|
|
|
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() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -30,7 +33,7 @@ public class TemplateResourcePanel extends JPanel {
|
|
|
|
|
this.templateResource = templateResource; |
|
|
|
|
initComponent(); |
|
|
|
|
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(southPane, BorderLayout.SOUTH); |
|
|
|
|
addAction(); |
|
|
|
@ -93,7 +96,7 @@ public class TemplateResourcePanel extends JPanel {
|
|
|
|
|
JLabel demoLabel = new JLabel(); |
|
|
|
|
if (templateResource.hasDemoUrl()) { |
|
|
|
|
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() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|