2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3 * Copyright (C) 2009 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.*;
31 public class GWebserviceInfo extends JPanel
33 protected JTextArea infoText = new JTextArea();
35 JScrollPane jScrollPane1 = new JScrollPane();
37 JPanel jPanel1 = new JPanel();
39 BorderLayout borderLayout1 = new BorderLayout();
41 BorderLayout borderLayout2 = new BorderLayout();
43 protected JPanel titlePanel = new JPanel();
45 BorderLayout borderLayout3 = new BorderLayout();
47 protected JPanel buttonPanel = new JPanel();
49 public JButton cancel = new JButton();
51 public JButton showResultsNewFrame = new JButton();
53 public JButton mergeResults = new JButton();
55 GridBagLayout gridBagLayout1 = new GridBagLayout();
58 * Creates a new GWebserviceInfo object.
60 public GWebserviceInfo()
77 private void jbInit() throws Exception
79 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
80 infoText.setBorder(null);
81 infoText.setEditable(false);
83 infoText.setLineWrap(true);
84 infoText.setWrapStyleWord(true);
85 this.setLayout(borderLayout1);
86 jPanel1.setLayout(borderLayout2);
87 titlePanel.setBackground(Color.white);
88 titlePanel.setPreferredSize(new Dimension(0, 60));
89 titlePanel.setLayout(borderLayout3);
90 jScrollPane1.setBorder(null);
91 jScrollPane1.setPreferredSize(new Dimension(400, 70));
92 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
93 cancel.setText("Cancel");
94 cancel.addActionListener(new java.awt.event.ActionListener()
96 public void actionPerformed(ActionEvent e)
98 cancel_actionPerformed(e);
101 buttonPanel.setLayout(gridBagLayout1);
102 buttonPanel.setOpaque(false);
103 showResultsNewFrame.setText("New Window");
104 mergeResults.setText("Merge Results");
105 this.setBackground(Color.white);
106 this.add(jPanel1, BorderLayout.NORTH);
107 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
108 jScrollPane1.getViewport().add(infoText, null);
109 jPanel1.add(titlePanel, BorderLayout.NORTH);
110 titlePanel.add(buttonPanel, BorderLayout.EAST);
111 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
112 GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
113 19, 6, 16, 4), 0, 0));
122 protected void cancel_actionPerformed(ActionEvent e)