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