updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 */
19 package jalview.jbgui;
20
21 import java.awt.*;
22 import java.awt.event.*;
23
24 import javax.swing.*;
25
26 /**
27  * DOCUMENT ME!
28  *
29  * @author $author$
30  * @version $Revision$
31  */
32 public class GWebserviceInfo extends JPanel
33 {
34     protected JTextArea infoText = new JTextArea();
35     JScrollPane jScrollPane1 = new JScrollPane();
36     JPanel jPanel1 = new JPanel();
37     BorderLayout borderLayout1 = new BorderLayout();
38     BorderLayout borderLayout2 = new BorderLayout();
39     protected JPanel titlePanel = new JPanel();
40     BorderLayout borderLayout3 = new BorderLayout();
41     protected JPanel buttonPanel = new JPanel();
42     public JButton cancel = new JButton();
43     public JButton showResultsNewFrame = new JButton();
44     public JButton mergeResults = new JButton();
45     GridBagLayout gridBagLayout1 = new GridBagLayout();
46   /**
47      * Creates a new GWebserviceInfo object.
48      */
49     public GWebserviceInfo()
50     {
51         try
52         {
53             jbInit();
54         }
55         catch (Exception e)
56         {
57             e.printStackTrace();
58         }
59     }
60
61     /**
62      * DOCUMENT ME!
63      *
64      * @throws Exception DOCUMENT ME!
65      */
66     private void jbInit() throws Exception
67     {
68         infoText.setFont(new java.awt.Font("Verdana", 0, 10));
69         infoText.setBorder(null);
70         infoText.setEditable(false);
71         infoText.setText("");
72         infoText.setLineWrap(true);
73         infoText.setWrapStyleWord(true);
74         this.setLayout(borderLayout1);
75         jPanel1.setLayout(borderLayout2);
76         titlePanel.setBackground(Color.white);
77         titlePanel.setPreferredSize(new Dimension(0, 60));
78         titlePanel.setLayout(borderLayout3);
79         jScrollPane1.setBorder(null);
80         jScrollPane1.setPreferredSize(new Dimension(400, 70));
81         cancel.setFont(new java.awt.Font("Verdana", 0, 11));
82         cancel.setText("Cancel");
83         cancel.addActionListener(new java.awt.event.ActionListener()
84             {
85                 public void actionPerformed(ActionEvent e)
86                 {
87                     cancel_actionPerformed(e);
88                 }
89             });
90     buttonPanel.setLayout(gridBagLayout1);
91     buttonPanel.setOpaque(false);
92     showResultsNewFrame.setText("New Frame");
93     mergeResults.setText("Merge Results");
94     this.setBackground(Color.white);
95     this.add(jPanel1, BorderLayout.NORTH);
96         jPanel1.add(jScrollPane1, BorderLayout.CENTER);
97         jScrollPane1.getViewport().add(infoText, null);
98         jPanel1.add(titlePanel, BorderLayout.NORTH);
99         titlePanel.add(buttonPanel, BorderLayout.EAST);
100     buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
101                                                , GridBagConstraints.CENTER,
102                                                GridBagConstraints.NONE,
103                                                new Insets(19, 6, 16, 4), 0, 0));
104   }
105
106     /**
107      * DOCUMENT ME!
108      *
109      * @param e DOCUMENT ME!
110      */
111     protected void cancel_actionPerformed(ActionEvent e)
112     {
113     }
114 }