4d3aab651fa84b1cfc198e6e9ce921e284a5956c
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 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
20 package jalview.jbgui;
21
22 import java.awt.*;
23 import javax.swing.*;
24 import java.awt.event.*;
25
26 public class GWebserviceInfo extends JPanel
27 {
28   protected JTextArea infoText = new JTextArea();
29   JScrollPane jScrollPane1 = new JScrollPane();
30   JScrollPane jScrollPane2 = new JScrollPane();
31   protected JTextArea progressText = new JTextArea();
32   JPanel jPanel1 = new JPanel();
33   BorderLayout borderLayout1 = new BorderLayout();
34   BorderLayout borderLayout2 = new BorderLayout();
35   protected JPanel titlePanel = new JPanel();
36   BorderLayout borderLayout3 = new BorderLayout();
37   JPanel jPanel2 = new JPanel();
38   protected JButton cancel = new JButton();
39   GridBagLayout gridBagLayout1 = new GridBagLayout();
40
41   public GWebserviceInfo()
42   {
43     try
44     {
45       jbInit();
46     }
47     catch(Exception e)
48     {
49       e.printStackTrace();
50     }
51   }
52   private void jbInit() throws Exception
53   {
54     infoText.setFont(new java.awt.Font("Verdana", 0, 10));
55     infoText.setBorder(null);
56     infoText.setEditable(false);
57     infoText.setText("");
58     infoText.setLineWrap(true);
59     infoText.setWrapStyleWord(true);
60     this.setLayout(borderLayout1);
61     progressText.setFont(new java.awt.Font("Verdana", 0, 10));
62     progressText.setBorder(null);
63     progressText.setEditable(false);
64     progressText.setText("");
65     progressText.setLineWrap(true);
66     progressText.setWrapStyleWord(true);
67     jPanel1.setLayout(borderLayout2);
68     titlePanel.setBackground(Color.white);
69     titlePanel.setPreferredSize(new Dimension(0, 60));
70     titlePanel.setLayout(borderLayout3);
71     jScrollPane2.setBorder(null);
72     jScrollPane1.setBorder(null);
73     jScrollPane1.setPreferredSize(new Dimension(400, 70));
74     cancel.setFont(new java.awt.Font("Verdana", 0, 11));
75     cancel.setText("Cancel");
76     cancel.addActionListener(new java.awt.event.ActionListener()
77     {
78       public void actionPerformed(ActionEvent e)
79       {
80         cancel_actionPerformed(e);
81       }
82     });
83     jPanel2.setLayout(gridBagLayout1);
84     jPanel2.setOpaque(false);
85     this.add(jScrollPane2, BorderLayout.CENTER);
86     this.add(jPanel1, BorderLayout.NORTH);
87     jPanel1.add(jScrollPane1, BorderLayout.CENTER);
88     jScrollPane1.getViewport().add(infoText, null);
89     jScrollPane2.getViewport().add(progressText, null);
90     jPanel1.add(titlePanel, BorderLayout.NORTH);
91     titlePanel.add(jPanel2, BorderLayout.EAST);
92     jPanel2.add(cancel,    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
93             ,GridBagConstraints.SOUTH, GridBagConstraints.NONE, new Insets(24, 5, 21, 5), 0, 0));
94   }
95
96   protected void cancel_actionPerformed(ActionEvent e)
97   {
98
99   }
100 }