2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2007 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
23 import javax.swing.*;
\r
29 * @version $Revision$
\r
31 public class GWebserviceInfo
\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()
\r
69 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
\r
70 infoText.setBorder(null);
\r
71 infoText.setEditable(false);
\r
72 infoText.setText("");
\r
73 infoText.setLineWrap(true);
\r
74 infoText.setWrapStyleWord(true);
\r
75 this.setLayout(borderLayout1);
\r
76 jPanel1.setLayout(borderLayout2);
\r
77 titlePanel.setBackground(Color.white);
\r
78 titlePanel.setPreferredSize(new Dimension(0, 60));
\r
79 titlePanel.setLayout(borderLayout3);
\r
80 jScrollPane1.setBorder(null);
\r
81 jScrollPane1.setPreferredSize(new Dimension(400, 70));
\r
82 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
\r
83 cancel.setText("Cancel");
\r
84 cancel.addActionListener(new java.awt.event.ActionListener()
\r
86 public void actionPerformed(ActionEvent e)
\r
88 cancel_actionPerformed(e);
\r
91 buttonPanel.setLayout(gridBagLayout1);
\r
92 buttonPanel.setOpaque(false);
\r
93 showResultsNewFrame.setText("New Window");
\r
94 mergeResults.setText("Merge Results");
\r
95 this.setBackground(Color.white);
\r
96 this.add(jPanel1, BorderLayout.NORTH);
\r
97 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
\r
98 jScrollPane1.getViewport().add(infoText, null);
\r
99 jPanel1.add(titlePanel, BorderLayout.NORTH);
\r
100 titlePanel.add(buttonPanel, BorderLayout.EAST);
\r
101 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
\r
102 , GridBagConstraints.CENTER,
\r
103 GridBagConstraints.NONE,
\r
104 new Insets(19, 6, 16, 4), 0, 0));
\r
110 * @param e DOCUMENT ME!
\r
112 protected void cancel_actionPerformed(ActionEvent e)
\r