elementAt instead of get for 1.1 compatibility
[jalview.git] / src / jalview / jbgui / GPreferences.java
1 /*\r
2 * Jalview - A Sequence Alignment Editor and Viewer\r
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
4 *\r
5 * This program is free software; you can redistribute it and/or\r
6 * modify it under the terms of the GNU General Public License\r
7 * as published by the Free Software Foundation; either version 2\r
8 * of the License, or (at your option) any later version.\r
9 *\r
10 * This program is distributed in the hope that it will be useful,\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 * GNU General Public License for more details.\r
14 *\r
15 * You should have received a copy of the GNU General Public License\r
16 * along with this program; if not, write to the Free Software\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
18 */\r
19 package jalview.jbgui;\r
20 \r
21 import java.awt.*;\r
22 \r
23 import javax.swing.*;\r
24 import javax.swing.border.TitledBorder;\r
25 import java.awt.event.*;\r
26 import javax.swing.event.*;\r
27 import java.awt.Font;\r
28 import java.awt.Rectangle;\r
29 import java.awt.Insets;\r
30 \r
31 /**\r
32  * DOCUMENT ME!\r
33  *\r
34  * @author $author$\r
35  * @version $Revision$\r
36  */\r
37 public class GPreferences extends JPanel\r
38 {\r
39     JTabbedPane tabbedPane = new JTabbedPane();\r
40 \r
41     JButton ok = new JButton();\r
42     JButton cancel = new JButton();\r
43     JPanel okCancelPanel = new JPanel();\r
44     BorderLayout borderLayout1 = new BorderLayout();\r
45     protected JCheckBox quality = new JCheckBox();\r
46     JPanel visualTab = new JPanel();\r
47   protected JCheckBox fullScreen = new JCheckBox();\r
48     protected JCheckBox conservation = new JCheckBox();\r
49     protected JCheckBox identity = new JCheckBox();\r
50     protected JCheckBox annotations = new JCheckBox();\r
51     JLabel gapLabel = new JLabel();\r
52     protected JComboBox colour = new JComboBox();\r
53     JLabel colourLabel = new JLabel();\r
54     JLabel fontLabel = new JLabel();\r
55     protected JComboBox fontSizeCB = new JComboBox();\r
56     protected JComboBox fontStyleCB = new JComboBox();\r
57     protected JComboBox fontNameCB = new JComboBox();\r
58     protected JComboBox gapSymbolCB = new JComboBox();\r
59     protected JCheckBox startupCheckbox = new JCheckBox();\r
60     protected JTextField startupFileTextfield = new JTextField();\r
61   JPanel connectTab = new JPanel();\r
62   JLabel serverLabel = new JLabel();\r
63   protected JList linkURLList = new JList();\r
64   protected JTextField proxyServerTB = new JTextField();\r
65   protected JTextField proxyPortTB = new JTextField();\r
66   JLabel portLabel = new JLabel();\r
67   JLabel browserLabel = new JLabel();\r
68   protected JTextField defaultBrowser = new JTextField();\r
69   JButton newLink = new JButton();\r
70   JButton editLink = new JButton();\r
71   JButton deleteLink = new JButton();\r
72   JScrollPane linkScrollPane = new JScrollPane();\r
73   JPanel linkPanel = new JPanel();\r
74   BorderLayout borderLayout2 = new BorderLayout();\r
75   JPanel editLinkButtons = new JPanel();\r
76   GridLayout gridLayout1 = new GridLayout();\r
77   protected JList linkNameList = new JList();\r
78   JPanel linkPanel2 = new JPanel();\r
79   BorderLayout borderLayout3 = new BorderLayout();\r
80   protected JCheckBox useProxy = new JCheckBox();\r
81   JPanel jPanel1 = new JPanel();\r
82   TitledBorder titledBorder1 = new TitledBorder("Proxy Server");\r
83   TitledBorder titledBorder2 = new TitledBorder("File Output");\r
84   GridBagLayout gridBagLayout2 = new GridBagLayout();\r
85   GridBagLayout gridBagLayout1 = new GridBagLayout();\r
86   GridBagLayout gridBagLayout3 = new GridBagLayout();\r
87   protected JComboBox sortby = new JComboBox();\r
88   JLabel sortLabel = new JLabel();\r
89   JPanel jPanel2 = new JPanel();\r
90   GridLayout gridLayout2 = new GridLayout();\r
91   JPanel jPanel3 = new JPanel();\r
92   JPanel exportTab = new JPanel();\r
93   JLabel epsLabel = new JLabel();\r
94   protected JComboBox epsRendering = new JComboBox();\r
95   JLabel jLabel1 = new JLabel();\r
96   protected  JCheckBox blcjv = new JCheckBox();\r
97   protected  JCheckBox pileupjv = new JCheckBox();\r
98   protected  JCheckBox clustaljv = new JCheckBox();\r
99   protected  JCheckBox msfjv = new JCheckBox();\r
100   protected  JCheckBox fastajv = new JCheckBox();\r
101   protected  JCheckBox pfamjv = new JCheckBox();\r
102   FlowLayout flowLayout1 = new FlowLayout();\r
103   protected  JCheckBox pirjv = new JCheckBox();\r
104   JPanel jPanel11 = new JPanel();\r
105   Font verdana11 = new java.awt.Font("Verdana", Font.PLAIN, 11);\r
106   protected JCheckBox seqLimit = new JCheckBox();\r
107   GridLayout gridLayout3 = new GridLayout();\r
108   protected JCheckBox smoothFont = new JCheckBox();\r
109   JPanel calcTab = new JPanel();\r
110   protected JCheckBox autoCalculateConsCheck = new JCheckBox();\r
111   protected JCheckBox padGaps = new JCheckBox();\r
112   protected JCheckBox modellerOutput = new JCheckBox();\r
113   protected JPanel dasPanel = new JPanel();\r
114   BorderLayout borderLayout4 = new BorderLayout();\r
115   protected JCheckBox wrap = new JCheckBox();\r
116   /**\r
117      * Creates a new GPreferences object.\r
118      */\r
119     public GPreferences()\r
120     {\r
121         try\r
122         {\r
123             jbInit();\r
124         }\r
125         catch (Exception ex)\r
126         {\r
127             ex.printStackTrace();\r
128         }\r
129     }\r
130 \r
131     /**\r
132      * DOCUMENT ME!\r
133      *\r
134      * @throws Exception DOCUMENT ME!\r
135      */\r
136     private void jbInit() throws Exception\r
137     {\r
138         this.setLayout(borderLayout1);\r
139         ok.setText("OK");\r
140         ok.addActionListener(new ActionListener()\r
141             {\r
142                 public void actionPerformed(ActionEvent e)\r
143                 {\r
144                     ok_actionPerformed(e);\r
145                 }\r
146             });\r
147         cancel.setText("Cancel");\r
148         cancel.addActionListener(new ActionListener()\r
149             {\r
150                 public void actionPerformed(ActionEvent e)\r
151                 {\r
152                     cancel_actionPerformed(e);\r
153                 }\r
154             });\r
155         quality.setEnabled(false);\r
156         quality.setFont(verdana11);\r
157         quality.setHorizontalAlignment(SwingConstants.RIGHT);\r
158         quality.setHorizontalTextPosition(SwingConstants.LEFT);\r
159         quality.setSelected(true);\r
160         quality.setText("Quality");\r
161     visualTab.setBorder(new TitledBorder("Open new alignment"));\r
162     visualTab.setLayout(null);\r
163     fullScreen.setFont(verdana11);\r
164         fullScreen.setHorizontalAlignment(SwingConstants.RIGHT);\r
165         fullScreen.setHorizontalTextPosition(SwingConstants.LEFT);\r
166     fullScreen.setMargin(new Insets(2, 2, 2, 0));\r
167     fullScreen.setText("Maximise Window");\r
168     conservation.setEnabled(false);\r
169         conservation.setFont(verdana11);\r
170         conservation.setHorizontalAlignment(SwingConstants.RIGHT);\r
171         conservation.setHorizontalTextPosition(SwingConstants.LEFT);\r
172         conservation.setSelected(true);\r
173         conservation.setText("Conservation");\r
174     identity.setEnabled(false);\r
175         identity.setFont(verdana11);\r
176         identity.setHorizontalAlignment(SwingConstants.RIGHT);\r
177         identity.setHorizontalTextPosition(SwingConstants.LEFT);\r
178         identity.setSelected(true);\r
179         identity.setText("Consensus");\r
180     annotations.setFont(verdana11);\r
181         annotations.setHorizontalAlignment(SwingConstants.RIGHT);\r
182         annotations.setHorizontalTextPosition(SwingConstants.LEFT);\r
183     annotations.setMargin(new Insets(2, 2, 2, 0));\r
184     annotations.setSelected(true);\r
185         annotations.setText("Show Annotations");\r
186     annotations.addActionListener(new ActionListener()\r
187             {\r
188                 public void actionPerformed(ActionEvent e)\r
189                 {\r
190                     annotations_actionPerformed(e);\r
191                 }\r
192             });\r
193         gapLabel.setFont(verdana11);\r
194         gapLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
195         gapLabel.setText("Gap Symbol ");\r
196     colour.setFont(verdana11);\r
197         colour.setBounds(new Rectangle(172, 188, 155, 21));\r
198         colourLabel.setFont(verdana11);\r
199         colourLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
200         colourLabel.setText("Colour ");\r
201     fontLabel.setFont(verdana11);\r
202         fontLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
203         fontLabel.setText("Font ");\r
204     fontSizeCB.setFont(verdana11);\r
205         fontSizeCB.setBounds(new Rectangle(317, 92, 49, 21));\r
206         fontStyleCB.setFont(verdana11);\r
207         fontStyleCB.setBounds(new Rectangle(364, 92, 70, 21));\r
208         fontNameCB.setFont(verdana11);\r
209         fontNameCB.setBounds(new Rectangle(171, 92, 147, 21));\r
210         gapSymbolCB.setFont(verdana11);\r
211         gapSymbolCB.setBounds(new Rectangle(172, 163, 69, 21));\r
212         startupCheckbox.setText("Open file");\r
213     startupCheckbox.setFont(verdana11);\r
214         startupCheckbox.setHorizontalAlignment(SwingConstants.RIGHT);\r
215         startupCheckbox.setHorizontalTextPosition(SwingConstants.LEFT);\r
216         startupCheckbox.setSelected(true);\r
217         startupFileTextfield.setFont(verdana11);\r
218         startupFileTextfield.setBounds(new Rectangle(171, 236, 270, 20));\r
219         startupFileTextfield.addMouseListener(new MouseAdapter()\r
220             {\r
221                 public void mouseClicked(MouseEvent e)\r
222                 {\r
223                     if (e.getClickCount() > 1)\r
224                     {\r
225                         startupFileTextfield_mouseClicked();\r
226                     }\r
227                 }\r
228             });\r
229 \r
230      connectTab.setLayout(gridBagLayout3);\r
231     serverLabel.setText("Address");\r
232     serverLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
233     serverLabel.setFont(verdana11);\r
234     proxyServerTB.setFont(verdana11);\r
235     proxyPortTB.setFont(verdana11);\r
236     portLabel.setFont(verdana11);\r
237     portLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
238     portLabel.setText("Port");\r
239     browserLabel.setFont(new java.awt.Font("SansSerif", 0, 11));\r
240     browserLabel.setHorizontalAlignment(SwingConstants.TRAILING);\r
241     browserLabel.setText("Default Browser (Unix)");\r
242     defaultBrowser.setFont(verdana11);\r
243     defaultBrowser.setText("");\r
244     newLink.setText("New");\r
245     newLink.addActionListener(new java.awt.event.ActionListener() {\r
246       public void actionPerformed(ActionEvent e) {\r
247         newLink_actionPerformed(e);\r
248       }\r
249     });\r
250     editLink.setText("Edit");\r
251     editLink.addActionListener(new java.awt.event.ActionListener() {\r
252       public void actionPerformed(ActionEvent e) {\r
253         editLink_actionPerformed(e);\r
254       }\r
255     });\r
256     deleteLink.setText("Delete");\r
257     deleteLink.addActionListener(new java.awt.event.ActionListener() {\r
258       public void actionPerformed(ActionEvent e) {\r
259         deleteLink_actionPerformed(e);\r
260       }\r
261     });\r
262 \r
263     linkURLList.addListSelectionListener(new ListSelectionListener()\r
264          {\r
265             public void valueChanged(ListSelectionEvent e)\r
266             {\r
267                int index = linkURLList.getSelectedIndex();\r
268                linkNameList.setSelectedIndex(index);\r
269             }\r
270          });\r
271 \r
272     linkNameList.addListSelectionListener(new ListSelectionListener()\r
273         {\r
274           public void valueChanged(ListSelectionEvent e)\r
275           {\r
276               int index = linkNameList.getSelectedIndex();\r
277               linkURLList.setSelectedIndex(index);\r
278           }\r
279         });\r
280 \r
281     linkScrollPane.setBorder(null);\r
282     linkPanel.setBorder(new TitledBorder("URL link from Sequence ID"));\r
283     linkPanel.setLayout(borderLayout2);\r
284     editLinkButtons.setLayout(gridLayout1);\r
285     gridLayout1.setRows(3);\r
286     linkNameList.setFont(verdana11);\r
287     linkNameList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
288     linkPanel2.setLayout(borderLayout3);\r
289     linkURLList.setFont(verdana11);\r
290     linkURLList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
291 \r
292     defaultBrowser.addMouseListener(new MouseAdapter()\r
293     {\r
294       public void mouseClicked(MouseEvent e)\r
295       {\r
296         if (e.getClickCount() > 1)\r
297             {\r
298               defaultBrowser_mouseClicked(e);\r
299             }\r
300       }\r
301     });\r
302     useProxy.setFont(verdana11);\r
303     useProxy.setHorizontalAlignment(SwingConstants.RIGHT);\r
304     useProxy.setHorizontalTextPosition(SwingConstants.LEADING);\r
305     useProxy.setText("Use a proxy server");\r
306     useProxy.addActionListener(new ActionListener()\r
307     {\r
308       public void actionPerformed(ActionEvent e)\r
309       {\r
310         useProxy_actionPerformed();\r
311       }\r
312     });\r
313     jPanel1.setBorder(titledBorder1);\r
314     jPanel1.setLayout(gridBagLayout1);\r
315     sortby.setFont(verdana11);\r
316     sortby.setBounds(new Rectangle(171, 213, 155, 21));\r
317     sortLabel.setFont(verdana11);\r
318     sortLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
319     sortLabel.setText("Sort by ");\r
320     jPanel2.setBounds(new Rectangle(7, 17, 158, 245));\r
321     jPanel2.setLayout(gridLayout2);\r
322     gridLayout2.setRows(10);\r
323     jPanel3.setBounds(new Rectangle(169, 39, 274, 26));\r
324     exportTab.setLayout(null);\r
325     epsLabel.setFont(verdana11);\r
326     epsLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
327     epsLabel.setText("EPS Rendering Style");\r
328     epsLabel.setBounds(new Rectangle(9, 31, 140, 24));\r
329     epsRendering.setFont(verdana11);\r
330     epsRendering.setBounds(new Rectangle(154, 34, 187, 21));\r
331     jLabel1.setFont(verdana11);\r
332     jLabel1.setHorizontalAlignment(SwingConstants.CENTER);\r
333     jLabel1.setText("Append /start-end (/15-380)");\r
334     jLabel1.setFont(verdana11);\r
335     fastajv.setFont(verdana11);\r
336     fastajv.setHorizontalAlignment(SwingConstants.LEFT);\r
337     clustaljv.setText("Clustal     ");\r
338     blcjv.setText("BLC     ");\r
339     fastajv.setText("Fasta     ");\r
340     msfjv.setText("MSF     ");\r
341     pfamjv.setText("PFAM     ");\r
342     pileupjv.setText("Pileup     ");\r
343     msfjv.setFont(verdana11);\r
344     msfjv.setHorizontalAlignment(SwingConstants.LEFT);\r
345     pirjv.setText("PIR     ");\r
346     jPanel11.setFont(verdana11);\r
347     jPanel11.setBorder(titledBorder2);\r
348     jPanel11.setBounds(new Rectangle(30, 72, 196, 182));\r
349     jPanel11.setLayout(gridLayout3);\r
350     blcjv.setFont(verdana11);\r
351     blcjv.setHorizontalAlignment(SwingConstants.LEFT);\r
352     clustaljv.setFont(verdana11);\r
353     clustaljv.setHorizontalAlignment(SwingConstants.LEFT);\r
354     pfamjv.setFont(verdana11);\r
355     pfamjv.setHorizontalAlignment(SwingConstants.LEFT);\r
356     pileupjv.setFont(verdana11);\r
357     pileupjv.setHorizontalAlignment(SwingConstants.LEFT);\r
358     pirjv.setFont(verdana11);\r
359     pirjv.setHorizontalAlignment(SwingConstants.LEFT);\r
360     seqLimit.setFont(verdana11);\r
361     seqLimit.setHorizontalAlignment(SwingConstants.RIGHT);\r
362     seqLimit.setHorizontalTextPosition(SwingConstants.LEFT);\r
363     seqLimit.setMargin(new Insets(2, 2, 2, 0));\r
364     seqLimit.setText("Full Sequence Id");\r
365     gridLayout3.setRows(8);\r
366     smoothFont.setFont(verdana11);\r
367     smoothFont.setHorizontalAlignment(SwingConstants.RIGHT);\r
368     smoothFont.setHorizontalTextPosition(SwingConstants.LEADING);\r
369     smoothFont.setText("Smooth Font");\r
370     calcTab.setLayout(null);\r
371     autoCalculateConsCheck.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
372     autoCalculateConsCheck.setText("AutoCalculate Consensus");\r
373     autoCalculateConsCheck.setBounds(new Rectangle(21, 52, 209, 23));\r
374     padGaps.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
375     padGaps.setText("Pad gaps when editing");\r
376     padGaps.setBounds(new Rectangle(22, 94, 168, 23));\r
377     modellerOutput.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
378     modellerOutput.setText("Use Modeller Output");\r
379     modellerOutput.setBounds(new Rectangle(228, 226, 168, 23));\r
380     dasPanel.setLayout(borderLayout4);\r
381     wrap.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
382     wrap.setHorizontalAlignment(SwingConstants.TRAILING);\r
383     wrap.setHorizontalTextPosition(SwingConstants.LEADING);\r
384     wrap.setText("Wrap Alignment");\r
385     jPanel2.add(fullScreen);\r
386 \r
387     jPanel2.add(annotations);\r
388     jPanel2.add(seqLimit);\r
389     jPanel2.add(fontLabel);\r
390     jPanel2.add(smoothFont);\r
391     jPanel2.add(wrap);\r
392     jPanel2.add(gapLabel);\r
393     jPanel2.add(colourLabel);\r
394     jPanel2.add(sortLabel);\r
395     jPanel2.add(startupCheckbox);\r
396     visualTab.add(sortby);\r
397     visualTab.add(gapSymbolCB);\r
398     visualTab.add(colour);\r
399     visualTab.add(fontNameCB);\r
400     visualTab.add(fontSizeCB);\r
401     visualTab.add(fontStyleCB);\r
402     visualTab.add(jPanel3);\r
403     visualTab.add(startupFileTextfield);\r
404     jPanel3.add(conservation);\r
405     jPanel3.add(identity);\r
406     jPanel3.add(quality);\r
407     visualTab.add(jPanel2);\r
408     linkPanel.add(editLinkButtons, BorderLayout.EAST);\r
409     editLinkButtons.add(newLink, null);\r
410     editLinkButtons.add(editLink, null);\r
411     editLinkButtons.add(deleteLink, null);\r
412     linkPanel.add(linkScrollPane, BorderLayout.CENTER);\r
413     linkScrollPane.getViewport().add(linkPanel2, null);\r
414     linkPanel2.add(linkURLList, BorderLayout.CENTER);\r
415     linkPanel2.add(linkNameList, BorderLayout.WEST);\r
416         okCancelPanel.add(ok);\r
417         okCancelPanel.add(cancel);\r
418     this.add(tabbedPane, java.awt.BorderLayout.CENTER);\r
419 \r
420         this.add(okCancelPanel, java.awt.BorderLayout.SOUTH);\r
421     jPanel1.add(serverLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0\r
422         , GridBagConstraints.WEST, GridBagConstraints.NONE,\r
423         new Insets(0, 2, 4, 0), 5, 0));\r
424     jPanel1.add(portLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0\r
425                                                   , GridBagConstraints.WEST,\r
426                                                   GridBagConstraints.NONE,\r
427                                                   new Insets(0, 0, 4, 0), 11, 6));\r
428     connectTab.add(linkPanel, new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0\r
429         , GridBagConstraints.CENTER, GridBagConstraints.BOTH,\r
430         new Insets(16, 0, 0, 12), 359, -17));\r
431     connectTab.add(jPanel1, new GridBagConstraints(0, 2, 2, 1, 1.0, 1.0\r
432         , GridBagConstraints.CENTER, GridBagConstraints.BOTH,\r
433         new Insets(21, 0, 35, 12), 4, 6));\r
434     connectTab.add(browserLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0\r
435         , GridBagConstraints.WEST, GridBagConstraints.NONE,\r
436         new Insets(16, 0, 0, 0), 5, 1));\r
437     jPanel1.add(proxyPortTB, new GridBagConstraints(3, 1, 1, 1, 1.0, 0.0\r
438         , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\r
439         new Insets(0, 2, 4, 2), 54, 1));\r
440     jPanel1.add(proxyServerTB, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0\r
441         , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\r
442         new Insets(0, 2, 4, 0), 263, 1));\r
443     connectTab.add(defaultBrowser, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0\r
444         , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\r
445         new Insets(15, 0, 0, 15), 307, 1));\r
446 \r
447 \r
448     jPanel1.add(useProxy, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0\r
449                                                  , GridBagConstraints.WEST,\r
450                                                  GridBagConstraints.NONE,\r
451                                                  new Insets(0, 2, 5, 185), 2,\r
452                                                  -4));\r
453     DefaultListCellRenderer dlcr = new DefaultListCellRenderer();\r
454         dlcr.setHorizontalAlignment(DefaultListCellRenderer.CENTER);\r
455         gapSymbolCB.setRenderer(dlcr);\r
456 \r
457     tabbedPane.add(visualTab, "Visual");\r
458     tabbedPane.add(connectTab,"Connections");\r
459     tabbedPane.add(exportTab, "Output");\r
460     jPanel11.add(jLabel1);\r
461     jPanel11.add(blcjv);\r
462     jPanel11.add(clustaljv);\r
463     jPanel11.add(fastajv);\r
464     jPanel11.add(msfjv);\r
465     jPanel11.add(pfamjv);\r
466     jPanel11.add(pileupjv);\r
467     jPanel11.add(pirjv);\r
468     exportTab.add(modellerOutput);\r
469     tabbedPane.add(calcTab, "Editing");\r
470     calcTab.add(autoCalculateConsCheck);\r
471     calcTab.add(padGaps);\r
472     tabbedPane.add(dasPanel, "DAS Settings");\r
473 \r
474     exportTab.add(epsLabel);\r
475     exportTab.add(epsRendering);\r
476     exportTab.add(jPanel11);\r
477   }\r
478 \r
479     /**\r
480      * DOCUMENT ME!\r
481      *\r
482      * @param e DOCUMENT ME!\r
483      */\r
484     public void ok_actionPerformed(ActionEvent e)\r
485     {\r
486     }\r
487 \r
488     /**\r
489      * DOCUMENT ME!\r
490      *\r
491      * @param e DOCUMENT ME!\r
492      */\r
493     public void cancel_actionPerformed(ActionEvent e)\r
494     {\r
495     }\r
496 \r
497     /**\r
498      * DOCUMENT ME!\r
499      *\r
500      * @param e DOCUMENT ME!\r
501      */\r
502     public void annotations_actionPerformed(ActionEvent e)\r
503     {\r
504     }\r
505 \r
506 \r
507     /**\r
508      * DOCUMENT ME!\r
509      */\r
510     public void startupFileTextfield_mouseClicked()\r
511     {\r
512     }\r
513 \r
514 \r
515   public void newLink_actionPerformed(ActionEvent e) {\r
516 \r
517   }\r
518 \r
519   public void editLink_actionPerformed(ActionEvent e) {\r
520 \r
521   }\r
522 \r
523   public void deleteLink_actionPerformed(ActionEvent e) {\r
524 \r
525   }\r
526 \r
527   public void defaultBrowser_mouseClicked(MouseEvent e)\r
528   {\r
529 \r
530   }\r
531 \r
532   public void linkURLList_keyTyped(KeyEvent e)\r
533   {\r
534 \r
535   }\r
536 \r
537   public void useProxy_actionPerformed()\r
538   {\r
539       proxyServerTB.setEnabled(useProxy.isSelected());\r
540       proxyPortTB.setEnabled(useProxy.isSelected());\r
541   }\r
542 }\r