X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGUserDefinedColours.java;h=49174a0ea3b92e811a6e9ffbbd26d33d7139e4ff;hb=b8d09897dacc7b0ad203982b4578e2c1d8929142;hp=3cd9f517aed5273aa023906f7e843aa330c4485f;hpb=588042b69abf8e60bcc950b24c283933c7dd422f;p=jalview.git diff --git a/src/jalview/jbgui/GUserDefinedColours.java b/src/jalview/jbgui/GUserDefinedColours.java index 3cd9f51..49174a0 100755 --- a/src/jalview/jbgui/GUserDefinedColours.java +++ b/src/jalview/jbgui/GUserDefinedColours.java @@ -24,7 +24,14 @@ import java.awt.event.*; import javax.swing.*; -public class GUserDefinedColours extends JPanel { +/** + * DOCUMENT ME! + * + * @author $author$ + * @version $Revision$ + */ +public class GUserDefinedColours extends JPanel +{ protected JColorChooser colorChooser = new JColorChooser(); protected JPanel buttonPanel = new JPanel(); protected GridLayout gridLayout = new GridLayout(); @@ -36,51 +43,74 @@ public class GUserDefinedColours extends JPanel { protected JButton cancelButton = new JButton(); FlowLayout flowLayout1 = new FlowLayout(); - public GUserDefinedColours() { - try { + /** + * Creates a new GUserDefinedColours object. + */ + public GUserDefinedColours() + { + try + { jbInit(); - } catch (Exception e) { + } + catch (Exception e) + { e.printStackTrace(); } } - private void jbInit() throws Exception { + /** + * DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ + 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.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.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.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.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.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { cancelButton_actionPerformed(e); } }); @@ -97,18 +127,48 @@ public class GUserDefinedColours extends JPanel { jPanel2.add(cancelButton, null); } - protected void okButton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void okButton_actionPerformed(ActionEvent e) + { } - protected void applyButton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void applyButton_actionPerformed(ActionEvent e) + { } - protected void loadbutton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void loadbutton_actionPerformed(ActionEvent e) + { } - protected void savebutton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void savebutton_actionPerformed(ActionEvent e) + { } - protected void cancelButton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void cancelButton_actionPerformed(ActionEvent e) + { } }