-package jalview.jbgui;
-
-import javax.swing.*;
-import java.awt.*;
-import java.awt.event.*;
-
-
-public class GUserDefinedColours extends JPanel
-{
- protected JColorChooser colorChooser = new JColorChooser();
- protected JPanel buttonPanel = new JPanel();
- protected GridLayout gridLayout = new GridLayout();
- JPanel jPanel2 = new JPanel();
- protected JButton okButton = new JButton();
- protected JButton applyButton = new JButton();
- protected JButton loadbutton = new JButton();
- protected JButton savebutton = new JButton();
- protected JButton cancelButton = new JButton();
- FlowLayout flowLayout1 = new FlowLayout();
-
- public GUserDefinedColours()
- {
- try
- {
- jbInit();
- }
- catch(Exception e)
- {
- e.printStackTrace();
- }
- }
- private void jbInit() throws Exception
- {
- this.setLayout(flowLayout1);
- buttonPanel.setLayout(gridLayout);
- gridLayout.setColumns(6);
- gridLayout.setRows(4);
- okButton.setFont(new java.awt.Font("Verdana", 0, 11));
- okButton.setText("OK");
- okButton.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- okButton_actionPerformed(e);
- }
- });
- applyButton.setFont(new java.awt.Font("Verdana", 0, 11));
- applyButton.setText("Apply");
- applyButton.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- applyButton_actionPerformed(e);
- }
- });
- loadbutton.setFont(new java.awt.Font("Verdana", 0, 11));
- loadbutton.setText("Load scheme");
- loadbutton.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- loadbutton_actionPerformed(e);
- }
- });
- savebutton.setFont(new java.awt.Font("Verdana", 0, 11));
- savebutton.setText("Save scheme");
- savebutton.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- savebutton_actionPerformed(e);
- }
- });
- cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));
- cancelButton.setText("Cancel");
- cancelButton.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- cancelButton_actionPerformed(e);
- }
- });
- this.setBackground(new Color(212, 208, 223));
- jPanel2.setOpaque(false);
- colorChooser.setOpaque(false);
- this.add(colorChooser, null);
- this.add(buttonPanel, null);
- this.add(jPanel2, null);
- jPanel2.add(okButton, null);
- jPanel2.add(applyButton, null);
- jPanel2.add(loadbutton, null);
- jPanel2.add(savebutton, null);
- jPanel2.add(cancelButton, null);
- }
-
-
- protected void okButton_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void applyButton_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void loadbutton_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void savebutton_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void cancelButton_actionPerformed(ActionEvent e)
- {
-
- }
-}
+/*\r
+* Jalview - A Sequence Alignment Editor and Viewer\r
+* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+*\r
+* This program is free software; you can redistribute it and/or\r
+* modify it under the terms of the GNU General Public License\r
+* as published by the Free Software Foundation; either version 2\r
+* of the License, or (at your option) any later version.\r
+*\r
+* This program is distributed in the hope that it will be useful,\r
+* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+* GNU General Public License for more details.\r
+*\r
+* You should have received a copy of the GNU General Public License\r
+* along with this program; if not, write to the Free Software\r
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\r
+*/\r
+package jalview.jbgui;\r
+\r
+import java.awt.*;\r
+import java.awt.event.*;\r
+\r
+import javax.swing.*;\r
+\r
+\r
+public class GUserDefinedColours extends JPanel {\r
+ protected JColorChooser colorChooser = new JColorChooser();\r
+ protected JPanel buttonPanel = new JPanel();\r
+ protected GridLayout gridLayout = new GridLayout();\r
+ JPanel jPanel2 = new JPanel();\r
+ protected JButton okButton = new JButton();\r
+ protected JButton applyButton = new JButton();\r
+ protected JButton loadbutton = new JButton();\r
+ protected JButton savebutton = new JButton();\r
+ protected JButton cancelButton = new JButton();\r
+ FlowLayout flowLayout1 = new FlowLayout();\r
+\r
+ public GUserDefinedColours() {\r
+ try {\r
+ jbInit();\r
+ } catch (Exception e) {\r
+ e.printStackTrace();\r
+ }\r
+ }\r
+\r
+ private void jbInit() throws Exception {\r
+ this.setLayout(flowLayout1);\r
+ buttonPanel.setLayout(gridLayout);\r
+ gridLayout.setColumns(6);\r
+ gridLayout.setRows(4);\r
+ okButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ okButton.setText("OK");\r
+ okButton.addActionListener(new java.awt.event.ActionListener() {\r
+ public void actionPerformed(ActionEvent e) {\r
+ okButton_actionPerformed(e);\r
+ }\r
+ });\r
+ applyButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ applyButton.setText("Apply");\r
+ applyButton.addActionListener(new java.awt.event.ActionListener() {\r
+ public void actionPerformed(ActionEvent e) {\r
+ applyButton_actionPerformed(e);\r
+ }\r
+ });\r
+ loadbutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ loadbutton.setText("Load scheme");\r
+ loadbutton.addActionListener(new java.awt.event.ActionListener() {\r
+ public void actionPerformed(ActionEvent e) {\r
+ loadbutton_actionPerformed(e);\r
+ }\r
+ });\r
+ savebutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ savebutton.setText("Save scheme");\r
+ savebutton.addActionListener(new java.awt.event.ActionListener() {\r
+ public void actionPerformed(ActionEvent e) {\r
+ savebutton_actionPerformed(e);\r
+ }\r
+ });\r
+ cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ cancelButton.setText("Cancel");\r
+ cancelButton.addActionListener(new java.awt.event.ActionListener() {\r
+ public void actionPerformed(ActionEvent e) {\r
+ cancelButton_actionPerformed(e);\r
+ }\r
+ });\r
+ this.setBackground(new Color(212, 208, 223));\r
+ jPanel2.setOpaque(false);\r
+ colorChooser.setOpaque(false);\r
+ this.add(colorChooser, null);\r
+ this.add(buttonPanel, null);\r
+ this.add(jPanel2, null);\r
+ jPanel2.add(okButton, null);\r
+ jPanel2.add(applyButton, null);\r
+ jPanel2.add(loadbutton, null);\r
+ jPanel2.add(savebutton, null);\r
+ jPanel2.add(cancelButton, null);\r
+ }\r
+\r
+ protected void okButton_actionPerformed(ActionEvent e) {\r
+ }\r
+\r
+ protected void applyButton_actionPerformed(ActionEvent e) {\r
+ }\r
+\r
+ protected void loadbutton_actionPerformed(ActionEvent e) {\r
+ }\r
+\r
+ protected void savebutton_actionPerformed(ActionEvent e) {\r
+ }\r
+\r
+ protected void cancelButton_actionPerformed(ActionEvent e) {\r
+ }\r
+}\r