X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGDasSourceBrowser.java;h=a91769a36f900e21f279e980b69c912b4e5ee6a3;hb=7047b076a62df177047ceb16c3611efe020bdd76;hp=180ba70fbb67add6d54469e6784427be90fb4139;hpb=4cea7a0328724b90a6a7c16ae8c926e0cc12cedd;p=jalview.git
diff --git a/src/jalview/jbgui/GDasSourceBrowser.java b/src/jalview/jbgui/GDasSourceBrowser.java
index 180ba70..a91769a 100755
--- a/src/jalview/jbgui/GDasSourceBrowser.java
+++ b/src/jalview/jbgui/GDasSourceBrowser.java
@@ -1,29 +1,51 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
*
* Jalview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.jbgui;
import jalview.util.MessageManager;
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-import javax.swing.border.*;
-import javax.swing.event.*;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.BorderFactory;
+import javax.swing.JButton;
+import javax.swing.JEditorPane;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.JScrollPane;
+import javax.swing.JTable;
+import javax.swing.JTextField;
+import javax.swing.SwingConstants;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.HyperlinkEvent;
+import javax.swing.event.HyperlinkListener;
public class GDasSourceBrowser extends JPanel
{
@@ -41,7 +63,8 @@ public class GDasSourceBrowser extends JPanel
private void jbInit() throws Exception
{
this.setLayout(gridBagLayout1);
- refresh.setText(MessageManager.getString("label.refresh_available_sources"));
+ refresh.setText(
+ MessageManager.getString("label.refresh_available_sources"));
refresh.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -114,34 +137,40 @@ public class GDasSourceBrowser extends JPanel
this.add(jPanel1, new GridBagConstraints(0, 3, 3, 1, 1.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 0, 0), 0, 0));
- this.add(fullDetailsScrollpane, new GridBagConstraints(1, 0, 2, 1, 1.0,
- 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
- new Insets(3, 0, 0, 3), 240, 130));
- this.add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
- GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(
- 3, 2, 0, 0), 150, 130));
+ this.add(fullDetailsScrollpane,
+ new GridBagConstraints(1, 0, 2, 1, 1.0, 1.0,
+ GridBagConstraints.CENTER, GridBagConstraints.BOTH,
+ new Insets(3, 0, 0, 3), 240, 130));
+ this.add(scrollPane,
+ new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
+ GridBagConstraints.CENTER, GridBagConstraints.BOTH,
+ new Insets(3, 2, 0, 0), 150, 130));
jPanel2.add(registryLabel, java.awt.BorderLayout.WEST);
jPanel2.add(registryURL, java.awt.BorderLayout.CENTER);
jPanel2.add(reset, java.awt.BorderLayout.EAST);
this.add(jPanel2, new GridBagConstraints(0, 2, 3, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(5, 10, 0, 10), 339, 0));
- this.add(jScrollPane2, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,
- GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(
- 0, 0, 0, 60), 80, 60));
- this.add(jScrollPane4, new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0,
- GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(
- 0, -80, 0, 0), 80, 60));
- this.add(jScrollPane3, new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
- GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(
- 0, -60, 0, 80), 80, 60));
+ this.add(jScrollPane2,
+ new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,
+ GridBagConstraints.CENTER, GridBagConstraints.BOTH,
+ new Insets(0, 0, 0, 60), 80, 60));
+ this.add(jScrollPane4,
+ new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0,
+ GridBagConstraints.CENTER, GridBagConstraints.BOTH,
+ new Insets(0, -80, 0, 0), 80, 60));
+ this.add(jScrollPane3,
+ new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
+ GridBagConstraints.CENTER, GridBagConstraints.BOTH,
+ new Insets(0, -60, 0, 80), 80, 60));
}
protected JTable table = new JTable();
protected JEditorPane fullDetails = new JEditorPane("text/html", "");
- TitledBorder titledBorder1 = new TitledBorder(MessageManager.getString("label.available_das_sources"));
+ TitledBorder titledBorder1 = new TitledBorder(
+ MessageManager.getString("label.available_das_sources"));
protected JButton refresh = new JButton();
@@ -149,7 +178,8 @@ public class GDasSourceBrowser extends JPanel
protected JScrollPane scrollPane = new JScrollPane();
- TitledBorder titledBorder2 = new TitledBorder(MessageManager.getString("label.full_details"));
+ TitledBorder titledBorder2 = new TitledBorder(
+ MessageManager.getString("label.full_details"));
protected JScrollPane fullDetailsScrollpane = new JScrollPane();
@@ -177,11 +207,14 @@ public class GDasSourceBrowser extends JPanel
GridBagLayout gridBagLayout1 = new GridBagLayout();
- TitledBorder titledBorder3 = new TitledBorder(MessageManager.getString("label.authority") + ":");
+ TitledBorder titledBorder3 = new TitledBorder(
+ MessageManager.getString("label.authority") + ":");
- TitledBorder titledBorder4 = new TitledBorder(MessageManager.getString("label.type") + ":");
+ TitledBorder titledBorder4 = new TitledBorder(
+ MessageManager.getString("label.type") + ":");
- TitledBorder titledBorder5 = new TitledBorder(MessageManager.getString("label.label") + ":");
+ TitledBorder titledBorder5 = new TitledBorder(
+ MessageManager.getString("label.label") + ":");
JButton reset = new JButton();