X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGPreferences.java;h=fd6101479cc0094d8a65547f5580457a4a5250c6;hb=b8d09897dacc7b0ad203982b4578e2c1d8929142;hp=04ac596f9a31b1598b59220ec94a33f67e3e9912;hpb=c954e7c8d0953fee214bf897608410a1bc41ec13;p=jalview.git diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java index 04ac596..fd61014 100755 --- a/src/jalview/jbgui/GPreferences.java +++ b/src/jalview/jbgui/GPreferences.java @@ -28,7 +28,14 @@ import javax.swing.*; import javax.swing.border.TitledBorder; -public class GPreferences extends JPanel { +/** + * DOCUMENT ME! + * + * @author $author$ + * @version $Revision$ + */ +public class GPreferences extends JPanel +{ JTabbedPane visaulTab = new JTabbedPane(); JPanel visual = new JPanel(); JButton ok = new JButton(); @@ -54,25 +61,42 @@ public class GPreferences extends JPanel { protected JCheckBox startupCheckbox = new JCheckBox(); protected JTextField startupFileTextfield = new JTextField(); - public GPreferences() { - try { + /** + * Creates a new GPreferences object. + */ + public GPreferences() + { + try + { jbInit(); - } catch (Exception ex) { + } + catch (Exception ex) + { ex.printStackTrace(); } } - private void jbInit() throws Exception { + /** + * DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ + private void jbInit() throws Exception + { this.setLayout(borderLayout1); ok.setText("OK"); - ok.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + ok.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { ok_actionPerformed(e); } }); cancel.setText("Cancel"); - cancel.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + cancel.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { cancel_actionPerformed(e); } }); @@ -117,8 +141,10 @@ public class GPreferences extends JPanel { annotations.setSelected(true); annotations.setText("Show Annotations"); annotations.setBounds(new Rectangle(10, 53, 128, 23)); - annotations.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + annotations.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { annotations_actionPerformed(e); } }); @@ -146,8 +172,10 @@ public class GPreferences extends JPanel { gapSymbolCB.setBounds(new Rectangle(121, 140, 67, 21)); startupCheckbox.setText("Open file"); startupCheckbox.setBounds(new Rectangle(4, 200, 115, 23)); - startupCheckbox.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + startupCheckbox.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { jCheckBox1_actionPerformed(e); } }); @@ -157,10 +185,14 @@ public class GPreferences extends JPanel { startupCheckbox.setSelected(true); startupFileTextfield.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); startupFileTextfield.setBounds(new Rectangle(122, 202, 309, 20)); - startupFileTextfield.addMouseListener(new MouseAdapter() { - public void mouseClicked(MouseEvent e) { - if(e.getClickCount()>1) - startupFileTextfield_mouseClicked(); + startupFileTextfield.addMouseListener(new MouseAdapter() + { + public void mouseClicked(MouseEvent e) + { + if (e.getClickCount() > 1) + { + startupFileTextfield_mouseClicked(); + } } }); @@ -192,18 +224,46 @@ public class GPreferences extends JPanel { gapSymbolCB.setRenderer(dlcr); } - public void ok_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + public void ok_actionPerformed(ActionEvent e) + { } - public void cancel_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + public void cancel_actionPerformed(ActionEvent e) + { } - public void annotations_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + public void annotations_actionPerformed(ActionEvent e) + { } - public void jCheckBox1_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + public void jCheckBox1_actionPerformed(ActionEvent e) + { } - public void startupFileTextfield_mouseClicked() { + /** + * DOCUMENT ME! + */ + public void startupFileTextfield_mouseClicked() + { } }