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