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 JPanel jPanel1 = new JPanel();
\r
37 BorderLayout borderLayout1 = new BorderLayout();
\r
38 BorderLayout borderLayout2 = new BorderLayout();
\r
39 protected JPanel titlePanel = new JPanel();
\r
40 BorderLayout borderLayout3 = new BorderLayout();
\r
41 protected JPanel buttonPanel = new JPanel();
\r
42 public JButton cancel = new JButton();
\r
43 public JButton showResultsNewFrame = new JButton();
\r
44 public JButton mergeResults = new JButton();
\r
45 GridBagLayout gridBagLayout1 = new GridBagLayout();
\r
47 * Creates a new GWebserviceInfo object.
\r
49 public GWebserviceInfo()
\r
57 e.printStackTrace();
\r
64 * @throws Exception DOCUMENT ME!
\r
66 private void jbInit() throws Exception
\r
68 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
\r
69 infoText.setBorder(null);
\r
70 infoText.setEditable(false);
\r
71 infoText.setText("");
\r
72 infoText.setLineWrap(true);
\r
73 infoText.setWrapStyleWord(true);
\r
74 this.setLayout(borderLayout1);
\r
75 jPanel1.setLayout(borderLayout2);
\r
76 titlePanel.setBackground(Color.white);
\r
77 titlePanel.setPreferredSize(new Dimension(0, 60));
\r
78 titlePanel.setLayout(borderLayout3);
\r
79 jScrollPane1.setBorder(null);
\r
80 jScrollPane1.setPreferredSize(new Dimension(400, 70));
\r
81 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
\r
82 cancel.setText("Cancel");
\r
83 cancel.addActionListener(new java.awt.event.ActionListener()
\r
85 public void actionPerformed(ActionEvent e)
\r
87 cancel_actionPerformed(e);
\r
90 buttonPanel.setLayout(gridBagLayout1);
\r
91 buttonPanel.setOpaque(false);
\r
92 showResultsNewFrame.setText("New Frame");
\r
93 mergeResults.setText("Merge Results");
\r
94 this.add(jPanel1, BorderLayout.NORTH);
\r
95 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
\r
96 jScrollPane1.getViewport().add(infoText, null);
\r
97 jPanel1.add(titlePanel, BorderLayout.NORTH);
\r
98 titlePanel.add(buttonPanel, BorderLayout.EAST);
\r
99 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
\r
100 , GridBagConstraints.CENTER,
\r
101 GridBagConstraints.NONE,
\r
102 new Insets(19, 6, 16, 4), 0, 0));
\r
108 * @param e DOCUMENT ME!
\r
110 protected void cancel_actionPerformed(ActionEvent e)
\r