2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.jbgui;
\r
22 import java.awt.event.*;
\r
24 import javax.swing.*;
\r
30 * @version $Revision$
\r
32 public class GWebserviceInfo extends JPanel
\r
34 protected JTextArea infoText = new JTextArea();
\r
35 JScrollPane jScrollPane1 = new JScrollPane();
\r
36 JScrollPane jScrollPane2 = new JScrollPane();
\r
37 protected JTextArea progressText = new JTextArea();
\r
38 JPanel jPanel1 = new JPanel();
\r
39 BorderLayout borderLayout1 = new BorderLayout();
\r
40 BorderLayout borderLayout2 = new BorderLayout();
\r
41 protected JPanel titlePanel = new JPanel();
\r
42 BorderLayout borderLayout3 = new BorderLayout();
\r
43 protected JPanel buttonPanel = new JPanel();
\r
44 public JButton cancel = new JButton();
\r
45 public JButton showResultsNewFrame = new JButton();
\r
46 public JButton mergeResults = new JButton();
\r
47 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 buttonPanel.setLayout(gridBagLayout1);
\r
100 buttonPanel.setOpaque(false);
\r
101 showResultsNewFrame.setText("New Frame");
\r
102 mergeResults.setText("Merge Results");
\r
103 this.add(jScrollPane2, BorderLayout.CENTER);
\r
104 this.add(jPanel1, BorderLayout.NORTH);
\r
105 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
\r
106 jScrollPane1.getViewport().add(infoText, null);
\r
107 jScrollPane2.getViewport().add(progressText, null);
\r
108 jPanel1.add(titlePanel, BorderLayout.NORTH);
\r
109 titlePanel.add(buttonPanel, BorderLayout.EAST);
\r
110 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
\r
111 , GridBagConstraints.CENTER,
\r
112 GridBagConstraints.NONE,
\r
113 new Insets(19, 6, 16, 4), 0, 0));
\r
119 * @param e DOCUMENT ME!
\r
121 protected void cancel_actionPerformed(ActionEvent e)
\r