package jalview.jbgui; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GWebserviceInfo extends JPanel { protected JTextArea infoText = new JTextArea(); JScrollPane jScrollPane1 = new JScrollPane(); JScrollPane jScrollPane2 = new JScrollPane(); protected JTextArea progressText = new JTextArea(); JPanel jPanel1 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout(); BorderLayout borderLayout2 = new BorderLayout(); protected JPanel titlePanel = new JPanel(); BorderLayout borderLayout3 = new BorderLayout(); JPanel jPanel2 = new JPanel(); protected JButton cancel = new JButton(); GridBagLayout gridBagLayout1 = new GridBagLayout(); public GWebserviceInfo() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { infoText.setFont(new java.awt.Font("Verdana", 0, 10)); infoText.setBorder(null); infoText.setEditable(false); infoText.setText(""); infoText.setLineWrap(true); infoText.setWrapStyleWord(true); this.setLayout(borderLayout1); progressText.setFont(new java.awt.Font("Verdana", 0, 10)); progressText.setBorder(null); progressText.setEditable(false); progressText.setText(""); progressText.setLineWrap(true); progressText.setWrapStyleWord(true); jPanel1.setLayout(borderLayout2); titlePanel.setBackground(Color.white); titlePanel.setPreferredSize(new Dimension(0, 60)); titlePanel.setLayout(borderLayout3); jScrollPane2.setBorder(null); jScrollPane1.setBorder(null); jScrollPane1.setPreferredSize(new Dimension(400, 70)); cancel.setFont(new java.awt.Font("Verdana", 0, 11)); cancel.setText("Cancel"); cancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { cancel_actionPerformed(e); } }); jPanel2.setLayout(gridBagLayout1); jPanel2.setOpaque(false); this.add(jScrollPane2, BorderLayout.CENTER); this.add(jPanel1, BorderLayout.NORTH); jPanel1.add(jScrollPane1, BorderLayout.CENTER); jScrollPane1.getViewport().add(infoText, null); jScrollPane2.getViewport().add(progressText, null); jPanel1.add(titlePanel, BorderLayout.NORTH); titlePanel.add(jPanel2, BorderLayout.EAST); jPanel2.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.SOUTH, GridBagConstraints.NONE, new Insets(24, 5, 21, 5), 0, 0)); } protected void cancel_actionPerformed(ActionEvent e) { } }