JAL-1668 added PDBDocFieldPreference for configuring rest response summary fields
[jalview.git] / src / jalview / jbgui / GPDBSearchPanel.java
index a236a5a..b350a0f 100644 (file)
@@ -24,7 +24,6 @@ package jalview.jbgui;
 import jalview.gui.Desktop;
 import jalview.util.MessageManager;
 import jalview.ws.dbsources.PDBRestClient.PDBDocField;
-import jalview.ws.uimodel.PDBRestResponse.PDBResponseSummary;
 
 import java.awt.BorderLayout;
 import java.awt.Dimension;
@@ -35,11 +34,10 @@ import javax.swing.JButton;
 import javax.swing.JComboBox;
 import javax.swing.JFrame;
 import javax.swing.JInternalFrame;
-import javax.swing.JList;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
+import javax.swing.JTable;
 import javax.swing.JTextField;
-import javax.swing.ListSelectionModel;
 import javax.swing.event.DocumentEvent;
 import javax.swing.event.DocumentListener;
 
@@ -67,10 +65,16 @@ public abstract class GPDBSearchPanel extends JPanel
   
   protected JTextField txt_search = new JTextField(20);
   
-  protected JList<PDBResponseSummary> lst_searchResult = new JList<PDBResponseSummary>();
+  // protected JList<PDBResponseSummary> lst_searchResult = new
+  // JList<PDBResponseSummary>();
+
+  // protected JScrollPane scrl_searchResult = new JScrollPane(
+  // lst_searchResult);
+
+  protected JTable tbl_summary = new JTable();
 
   protected JScrollPane scrl_searchResult = new JScrollPane(
-          lst_searchResult);
+tbl_summary);
 
   private JPanel pnl_actions = new JPanel();
 
@@ -131,10 +135,11 @@ public abstract class GPDBSearchPanel extends JPanel
     pnl_actions.add(btn_ok);
     pnl_actions.add(btn_cancel);
 
-    lst_searchResult
-            .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
-    lst_searchResult.setLayoutOrientation(JList.VERTICAL);
-    lst_searchResult.setVisibleRowCount(-1);
+    // lst_searchResult
+    // .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
+    // lst_searchResult.setLayoutOrientation(JList.VERTICAL);
+    // lst_searchResult.setVisibleRowCount(-1);
+
     scrl_searchResult.setPreferredSize(new Dimension(500, 300));
     scrl_searchResult
             .setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);