Jalview Imported Sources
[jalview.git] / src / jalview / jbgui / GUserDefinedColours.java
1 package jalview.jbgui;
2
3 import javax.swing.*;
4 import java.awt.*;
5 import java.awt.event.*;
6
7
8 public class GUserDefinedColours extends JPanel
9 {
10   protected JColorChooser colorChooser = new JColorChooser();
11   protected JPanel buttonPanel = new JPanel();
12   protected GridLayout gridLayout = new GridLayout();
13   JPanel jPanel2 = new JPanel();
14   protected JButton okButton = new JButton();
15   protected JButton applyButton = new JButton();
16   protected JButton loadbutton = new JButton();
17   protected JButton savebutton = new JButton();
18   protected JButton cancelButton = new JButton();
19   FlowLayout flowLayout1 = new FlowLayout();
20
21   public GUserDefinedColours()
22   {
23     try
24     {
25       jbInit();
26     }
27     catch(Exception e)
28     {
29       e.printStackTrace();
30     }
31   }
32   private void jbInit() throws Exception
33   {
34     this.setLayout(flowLayout1);
35     buttonPanel.setLayout(gridLayout);
36     gridLayout.setColumns(6);
37     gridLayout.setRows(4);
38     okButton.setFont(new java.awt.Font("Verdana", 0, 11));
39     okButton.setText("OK");
40     okButton.addActionListener(new java.awt.event.ActionListener()
41     {
42       public void actionPerformed(ActionEvent e)
43       {
44         okButton_actionPerformed(e);
45       }
46     });
47     applyButton.setFont(new java.awt.Font("Verdana", 0, 11));
48     applyButton.setText("Apply");
49     applyButton.addActionListener(new java.awt.event.ActionListener()
50     {
51       public void actionPerformed(ActionEvent e)
52       {
53         applyButton_actionPerformed(e);
54       }
55     });
56     loadbutton.setFont(new java.awt.Font("Verdana", 0, 11));
57     loadbutton.setText("Load scheme");
58     loadbutton.addActionListener(new java.awt.event.ActionListener()
59     {
60       public void actionPerformed(ActionEvent e)
61       {
62         loadbutton_actionPerformed(e);
63       }
64     });
65     savebutton.setFont(new java.awt.Font("Verdana", 0, 11));
66     savebutton.setText("Save scheme");
67     savebutton.addActionListener(new java.awt.event.ActionListener()
68     {
69       public void actionPerformed(ActionEvent e)
70       {
71         savebutton_actionPerformed(e);
72       }
73     });
74     cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));
75     cancelButton.setText("Cancel");
76     cancelButton.addActionListener(new java.awt.event.ActionListener()
77     {
78       public void actionPerformed(ActionEvent e)
79       {
80         cancelButton_actionPerformed(e);
81       }
82     });
83     this.setBackground(new Color(212, 208, 223));
84     jPanel2.setOpaque(false);
85     colorChooser.setOpaque(false);
86     this.add(colorChooser, null);
87     this.add(buttonPanel, null);
88      this.add(jPanel2, null);
89     jPanel2.add(okButton, null);
90     jPanel2.add(applyButton, null);
91     jPanel2.add(loadbutton, null);
92     jPanel2.add(savebutton, null);
93     jPanel2.add(cancelButton, null);
94   }
95
96
97   protected void okButton_actionPerformed(ActionEvent e)
98   {
99
100   }
101
102   protected void applyButton_actionPerformed(ActionEvent e)
103   {
104
105   }
106
107   protected void loadbutton_actionPerformed(ActionEvent e)
108   {
109
110   }
111
112   protected void savebutton_actionPerformed(ActionEvent e)
113   {
114
115   }
116
117   protected void cancelButton_actionPerformed(ActionEvent e)
118   {
119
120   }
121 }