apply gpl development license
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3  * Copyright (C) 2009 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 import javax.swing.*;
24
25 /**
26  * DOCUMENT ME!
27  * 
28  * @author $author$
29  * @version $Revision$
30  */
31 public class GWebserviceInfo extends JPanel
32 {
33   protected JTextArea infoText = new JTextArea();
34
35   JScrollPane jScrollPane1 = new JScrollPane();
36
37   JPanel jPanel1 = new JPanel();
38
39   BorderLayout borderLayout1 = new BorderLayout();
40
41   BorderLayout borderLayout2 = new BorderLayout();
42
43   protected JPanel titlePanel = new JPanel();
44
45   BorderLayout borderLayout3 = new BorderLayout();
46
47   protected JPanel buttonPanel = new JPanel();
48
49   public JButton cancel = new JButton();
50
51   public JButton showResultsNewFrame = new JButton();
52
53   public JButton mergeResults = new JButton();
54
55   GridBagLayout gridBagLayout1 = new GridBagLayout();
56
57   /**
58    * Creates a new GWebserviceInfo object.
59    */
60   public GWebserviceInfo()
61   {
62     try
63     {
64       jbInit();
65     } catch (Exception e)
66     {
67       e.printStackTrace();
68     }
69   }
70
71   /**
72    * DOCUMENT ME!
73    * 
74    * @throws Exception
75    *                 DOCUMENT ME!
76    */
77   private void jbInit() throws Exception
78   {
79     infoText.setFont(new java.awt.Font("Verdana", 0, 10));
80     infoText.setBorder(null);
81     infoText.setEditable(false);
82     infoText.setText("");
83     infoText.setLineWrap(true);
84     infoText.setWrapStyleWord(true);
85     this.setLayout(borderLayout1);
86     jPanel1.setLayout(borderLayout2);
87     titlePanel.setBackground(Color.white);
88     titlePanel.setPreferredSize(new Dimension(0, 60));
89     titlePanel.setLayout(borderLayout3);
90     jScrollPane1.setBorder(null);
91     jScrollPane1.setPreferredSize(new Dimension(400, 70));
92     cancel.setFont(new java.awt.Font("Verdana", 0, 11));
93     cancel.setText("Cancel");
94     cancel.addActionListener(new java.awt.event.ActionListener()
95     {
96       public void actionPerformed(ActionEvent e)
97       {
98         cancel_actionPerformed(e);
99       }
100     });
101     buttonPanel.setLayout(gridBagLayout1);
102     buttonPanel.setOpaque(false);
103     showResultsNewFrame.setText("New Window");
104     mergeResults.setText("Merge Results");
105     this.setBackground(Color.white);
106     this.add(jPanel1, BorderLayout.NORTH);
107     jPanel1.add(jScrollPane1, BorderLayout.CENTER);
108     jScrollPane1.getViewport().add(infoText, null);
109     jPanel1.add(titlePanel, BorderLayout.NORTH);
110     titlePanel.add(buttonPanel, BorderLayout.EAST);
111     buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
112             GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
113                     19, 6, 16, 4), 0, 0));
114   }
115
116   /**
117    * DOCUMENT ME!
118    * 
119    * @param e
120    *                DOCUMENT ME!
121    */
122   protected void cancel_actionPerformed(ActionEvent e)
123   {
124   }
125 }