2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 The Jalview Authors
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/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
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();
57 public JPanel statusPanel = new JPanel(new GridLayout());
59 public JLabel statusBar = new JLabel();
62 * Creates a new GWebserviceInfo object.
64 public GWebserviceInfo()
81 private void jbInit() throws Exception
83 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
84 infoText.setBorder(null);
85 infoText.setEditable(false);
87 infoText.setLineWrap(true);
88 infoText.setWrapStyleWord(true);
89 this.setLayout(borderLayout1);
90 jPanel1.setLayout(borderLayout2);
91 titlePanel.setBackground(Color.white);
92 titlePanel.setPreferredSize(new Dimension(0, 60));
93 titlePanel.setLayout(borderLayout3);
94 jScrollPane1.setBorder(null);
95 jScrollPane1.setPreferredSize(new Dimension(400, 70));
96 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
97 cancel.setText("Cancel");
98 cancel.addActionListener(new java.awt.event.ActionListener()
100 public void actionPerformed(ActionEvent e)
102 cancel_actionPerformed(e);
105 buttonPanel.setLayout(gridBagLayout1);
106 buttonPanel.setOpaque(false);
107 showResultsNewFrame.setText("New Window");
108 mergeResults.setText("Merge Results");
109 this.setBackground(Color.white);
110 this.add(jPanel1, BorderLayout.NORTH);
111 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
112 jScrollPane1.getViewport().add(infoText, null);
113 jPanel1.add(titlePanel, BorderLayout.NORTH);
114 titlePanel.add(buttonPanel, BorderLayout.EAST);
115 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
116 GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
117 19, 6, 16, 4), 0, 0));
118 this.add(statusPanel, java.awt.BorderLayout.SOUTH);
119 statusPanel.add(statusBar, null);
128 protected void cancel_actionPerformed(ActionEvent e)