910768ecdf8561c644963b6f99332a9db0021b54
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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
10  * of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  */
21 package jalview.jbgui;
22
23 import jalview.util.MessageManager;
24
25 import java.awt.*;
26 import java.awt.event.*;
27
28 import javax.swing.*;
29
30 /**
31  * DOCUMENT ME!
32  * 
33  * @author $author$
34  * @version $Revision$
35  */
36 public class GWebserviceInfo extends JPanel
37 {
38   protected JTextArea infoText = new JTextArea();
39
40   JScrollPane jScrollPane1 = new JScrollPane();
41
42   JPanel jPanel1 = new JPanel();
43
44   BorderLayout borderLayout1 = new BorderLayout();
45
46   BorderLayout borderLayout2 = new BorderLayout();
47
48   protected JPanel titlePanel = new JPanel();
49
50   BorderLayout borderLayout3 = new BorderLayout();
51
52   protected JPanel buttonPanel = new JPanel();
53
54   public JButton cancel = new JButton();
55
56   public JButton showResultsNewFrame = new JButton();
57
58   public JButton mergeResults = new JButton();
59
60   GridBagLayout gridBagLayout1 = new GridBagLayout();
61
62   public JPanel statusPanel = new JPanel(new GridLayout());
63
64   public JLabel statusBar = new JLabel();
65
66   /**
67    * Creates a new GWebserviceInfo object.
68    */
69   public GWebserviceInfo()
70   {
71     try
72     {
73       jbInit();
74     } catch (Exception e)
75     {
76       e.printStackTrace();
77     }
78   }
79
80   /**
81    * DOCUMENT ME!
82    * 
83    * @throws Exception
84    *           DOCUMENT ME!
85    */
86   private void jbInit() throws Exception
87   {
88     infoText.setFont(new java.awt.Font("Verdana", 0, 10));
89     infoText.setBorder(null);
90     infoText.setEditable(false);
91     infoText.setText("");
92     infoText.setLineWrap(true);
93     infoText.setWrapStyleWord(true);
94     this.setLayout(borderLayout1);
95     jPanel1.setLayout(borderLayout2);
96     titlePanel.setBackground(Color.white);
97     titlePanel.setPreferredSize(new Dimension(0, 60));
98     titlePanel.setLayout(borderLayout3);
99     jScrollPane1.setBorder(null);
100     jScrollPane1.setPreferredSize(new Dimension(400, 70));
101     cancel.setFont(new java.awt.Font("Verdana", 0, 11));
102     cancel.setText(MessageManager.getString("action.cancel"));
103     cancel.addActionListener(new java.awt.event.ActionListener()
104     {
105       public void actionPerformed(ActionEvent e)
106       {
107         cancel_actionPerformed(e);
108       }
109     });
110     buttonPanel.setLayout(gridBagLayout1);
111     buttonPanel.setOpaque(false);
112     showResultsNewFrame.setText(MessageManager
113             .getString("label.new_window"));
114     mergeResults.setText(MessageManager.getString("action.merge_results"));
115     this.setBackground(Color.white);
116     this.add(jPanel1, BorderLayout.NORTH);
117     jPanel1.add(jScrollPane1, BorderLayout.CENTER);
118     jScrollPane1.getViewport().add(infoText, null);
119     jPanel1.add(titlePanel, BorderLayout.NORTH);
120     titlePanel.add(buttonPanel, BorderLayout.EAST);
121     buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
122             GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
123                     19, 6, 16, 4), 0, 0));
124     this.add(statusPanel, java.awt.BorderLayout.SOUTH);
125     statusPanel.add(statusBar, null);
126   }
127
128   /**
129    * DOCUMENT ME!
130    * 
131    * @param e
132    *          DOCUMENT ME!
133    */
134   protected void cancel_actionPerformed(ActionEvent e)
135   {
136   }
137 }