2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
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.
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.
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
19 package jalview.jbgui;
\r
22 import java.awt.event.*;
\r
24 import javax.swing.*;
\r
31 * @version $Revision$
\r
33 public class GWebserviceInfo extends JPanel
\r
35 protected JTextArea infoText = new JTextArea();
\r
36 JScrollPane jScrollPane1 = new JScrollPane();
\r
37 JScrollPane jScrollPane2 = new JScrollPane();
\r
38 protected JTextArea progressText = new JTextArea();
\r
39 JPanel jPanel1 = new JPanel();
\r
40 BorderLayout borderLayout1 = new BorderLayout();
\r
41 BorderLayout borderLayout2 = new BorderLayout();
\r
42 protected JPanel titlePanel = new JPanel();
\r
43 BorderLayout borderLayout3 = new BorderLayout();
\r
44 JPanel jPanel2 = new JPanel();
\r
45 protected JButton cancel = new JButton();
\r
46 GridBagLayout gridBagLayout1 = new GridBagLayout();
\r
49 * Creates a new GWebserviceInfo object.
\r
51 public GWebserviceInfo()
\r
59 e.printStackTrace();
\r
66 * @throws Exception DOCUMENT ME!
\r
68 private void jbInit() throws Exception
\r
70 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
\r
71 infoText.setBorder(null);
\r
72 infoText.setEditable(false);
\r
73 infoText.setText("");
\r
74 infoText.setLineWrap(true);
\r
75 infoText.setWrapStyleWord(true);
\r
76 this.setLayout(borderLayout1);
\r
77 progressText.setFont(new java.awt.Font("Verdana", 0, 10));
\r
78 progressText.setBorder(null);
\r
79 progressText.setEditable(false);
\r
80 progressText.setText("");
\r
81 progressText.setLineWrap(true);
\r
82 progressText.setWrapStyleWord(true);
\r
83 jPanel1.setLayout(borderLayout2);
\r
84 titlePanel.setBackground(Color.white);
\r
85 titlePanel.setPreferredSize(new Dimension(0, 60));
\r
86 titlePanel.setLayout(borderLayout3);
\r
87 jScrollPane2.setBorder(null);
\r
88 jScrollPane1.setBorder(null);
\r
89 jScrollPane1.setPreferredSize(new Dimension(400, 70));
\r
90 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
\r
91 cancel.setText("Cancel");
\r
92 cancel.addActionListener(new java.awt.event.ActionListener()
\r
94 public void actionPerformed(ActionEvent e)
\r
96 cancel_actionPerformed(e);
\r
99 jPanel2.setLayout(gridBagLayout1);
\r
100 jPanel2.setOpaque(false);
\r
101 this.add(jScrollPane2, BorderLayout.CENTER);
\r
102 this.add(jPanel1, BorderLayout.NORTH);
\r
103 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
\r
104 jScrollPane1.getViewport().add(infoText, null);
\r
105 jScrollPane2.getViewport().add(progressText, null);
\r
106 jPanel1.add(titlePanel, BorderLayout.NORTH);
\r
107 titlePanel.add(jPanel2, BorderLayout.EAST);
\r
108 jPanel2.add(cancel,
\r
109 new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
\r
110 GridBagConstraints.SOUTH, GridBagConstraints.NONE,
\r
111 new Insets(24, 5, 21, 5), 0, 0));
\r
117 * @param e DOCUMENT ME!
\r
119 protected void cancel_actionPerformed(ActionEvent e)
\r