2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
18 package jalview.jbgui;
21 import java.awt.event.*;
30 public class GWebserviceInfo extends JPanel
32 protected JTextArea infoText = new JTextArea();
34 JScrollPane jScrollPane1 = new JScrollPane();
36 JPanel jPanel1 = new JPanel();
38 BorderLayout borderLayout1 = new BorderLayout();
40 BorderLayout borderLayout2 = new BorderLayout();
42 protected JPanel titlePanel = new JPanel();
44 BorderLayout borderLayout3 = new BorderLayout();
46 protected JPanel buttonPanel = new JPanel();
48 public JButton cancel = new JButton();
50 public JButton showResultsNewFrame = new JButton();
52 public JButton mergeResults = new JButton();
54 GridBagLayout gridBagLayout1 = new GridBagLayout();
57 * Creates a new GWebserviceInfo object.
59 public GWebserviceInfo()
76 private void jbInit() throws Exception
78 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
79 infoText.setBorder(null);
80 infoText.setEditable(false);
82 infoText.setLineWrap(true);
83 infoText.setWrapStyleWord(true);
84 this.setLayout(borderLayout1);
85 jPanel1.setLayout(borderLayout2);
86 titlePanel.setBackground(Color.white);
87 titlePanel.setPreferredSize(new Dimension(0, 60));
88 titlePanel.setLayout(borderLayout3);
89 jScrollPane1.setBorder(null);
90 jScrollPane1.setPreferredSize(new Dimension(400, 70));
91 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
92 cancel.setText("Cancel");
93 cancel.addActionListener(new java.awt.event.ActionListener()
95 public void actionPerformed(ActionEvent e)
97 cancel_actionPerformed(e);
100 buttonPanel.setLayout(gridBagLayout1);
101 buttonPanel.setOpaque(false);
102 showResultsNewFrame.setText("New Window");
103 mergeResults.setText("Merge Results");
104 this.setBackground(Color.white);
105 this.add(jPanel1, BorderLayout.NORTH);
106 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
107 jScrollPane1.getViewport().add(infoText, null);
108 jPanel1.add(titlePanel, BorderLayout.NORTH);
109 titlePanel.add(buttonPanel, BorderLayout.EAST);
110 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
111 GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
112 19, 6, 16, 4), 0, 0));
121 protected void cancel_actionPerformed(ActionEvent e)