2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
3 * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, 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();
56 public JPanel statusPanel = new JPanel(new GridLayout());
58 public JLabel statusBar = new JLabel();
61 * Creates a new GWebserviceInfo object.
63 public GWebserviceInfo()
80 private void jbInit() throws Exception
82 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
83 infoText.setBorder(null);
84 infoText.setEditable(false);
86 infoText.setLineWrap(true);
87 infoText.setWrapStyleWord(true);
88 this.setLayout(borderLayout1);
89 jPanel1.setLayout(borderLayout2);
90 titlePanel.setBackground(Color.white);
91 titlePanel.setPreferredSize(new Dimension(0, 60));
92 titlePanel.setLayout(borderLayout3);
93 jScrollPane1.setBorder(null);
94 jScrollPane1.setPreferredSize(new Dimension(400, 70));
95 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
96 cancel.setText("Cancel");
97 cancel.addActionListener(new java.awt.event.ActionListener()
99 public void actionPerformed(ActionEvent e)
101 cancel_actionPerformed(e);
104 buttonPanel.setLayout(gridBagLayout1);
105 buttonPanel.setOpaque(false);
106 showResultsNewFrame.setText("New Window");
107 mergeResults.setText("Merge Results");
108 this.setBackground(Color.white);
109 this.add(jPanel1, BorderLayout.NORTH);
110 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
111 jScrollPane1.getViewport().add(infoText, null);
112 jPanel1.add(titlePanel, BorderLayout.NORTH);
113 titlePanel.add(buttonPanel, BorderLayout.EAST);
114 buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
115 GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(
116 19, 6, 16, 4), 0, 0));
117 this.add(statusPanel, java.awt.BorderLayout.SOUTH);
118 statusPanel.add(statusBar, null);
127 protected void cancel_actionPerformed(ActionEvent e)