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