JAL-1432 updated copyright notices
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 The Jalview Authors
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  * The Jalview Authors are detailed in the 'AUTHORS' file.
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   public JPanel statusPanel = new JPanel(new GridLayout());
58
59   public JLabel statusBar = new JLabel();
60
61   /**
62    * Creates a new GWebserviceInfo object.
63    */
64   public GWebserviceInfo()
65   {
66     try
67     {
68       jbInit();
69     } catch (Exception e)
70     {
71       e.printStackTrace();
72     }
73   }
74
75   /**
76    * DOCUMENT ME!
77    * 
78    * @throws Exception
79    *           DOCUMENT ME!
80    */
81   private void jbInit() throws Exception
82   {
83     infoText.setFont(new java.awt.Font("Verdana", 0, 10));
84     infoText.setBorder(null);
85     infoText.setEditable(false);
86     infoText.setText("");
87     infoText.setLineWrap(true);
88     infoText.setWrapStyleWord(true);
89     this.setLayout(borderLayout1);
90     jPanel1.setLayout(borderLayout2);
91     titlePanel.setBackground(Color.white);
92     titlePanel.setPreferredSize(new Dimension(0, 60));
93     titlePanel.setLayout(borderLayout3);
94     jScrollPane1.setBorder(null);
95     jScrollPane1.setPreferredSize(new Dimension(400, 70));
96     cancel.setFont(new java.awt.Font("Verdana", 0, 11));
97     cancel.setText("Cancel");
98     cancel.addActionListener(new java.awt.event.ActionListener()
99     {
100       public void actionPerformed(ActionEvent e)
101       {
102         cancel_actionPerformed(e);
103       }
104     });
105     buttonPanel.setLayout(gridBagLayout1);
106     buttonPanel.setOpaque(false);
107     showResultsNewFrame.setText("New Window");
108     mergeResults.setText("Merge Results");
109     this.setBackground(Color.white);
110     this.add(jPanel1, BorderLayout.NORTH);
111     jPanel1.add(jScrollPane1, BorderLayout.CENTER);
112     jScrollPane1.getViewport().add(infoText, null);
113     jPanel1.add(titlePanel, BorderLayout.NORTH);
114     titlePanel.add(buttonPanel, BorderLayout.EAST);
115     buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
116             GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
117                     19, 6, 16, 4), 0, 0));
118     this.add(statusPanel, java.awt.BorderLayout.SOUTH);
119     statusPanel.add(statusBar, null);
120   }
121
122   /**
123    * DOCUMENT ME!
124    * 
125    * @param e
126    *          DOCUMENT ME!
127    */
128   protected void cancel_actionPerformed(ActionEvent e)
129   {
130   }
131 }