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