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