001/** 002 * BioJava development code 003 * 004 * This code may be freely distributed and modified under the 005 * terms of the GNU Lesser General Public Licence. This should 006 * be distributed with the code. If you do not have a copy, 007 * see: 008 * 009 * http://www.gnu.org/copyleft/lesser.html 010 * 011 * Copyright for this code is held jointly by the individual 012 * authors. These should be listed in @author doc comments. 013 * 014 * For more information on the BioJava project and its aims, 015 * or to join the biojava-l mailing list, visit the home page 016 * at: 017 * 018 * http://www.biojava.org/ 019 * 020 * Created on Sep 26, 2011 021 * Created by Andreas Prlic 022 * 023 * @since 3.0.2 024 */ 025package org.biojava.nbio.structure.align.webstart; 026 027import org.biojava.nbio.structure.align.gui.DBResultTable; 028import org.biojava.nbio.structure.align.util.UserConfiguration; 029 030import javax.swing.*; 031import java.net.URL; 032 033public class WebStartDBSearchResults { 034 035 public static void main(String[] argv){ 036 037 if (argv.length == 0 ) { 038 039 JOptionPane.showMessageDialog(null, 040 "Not enough arguments!"); 041 return; 042 043 044 } else if ( argv.length == 2){ 045 String path = argv[1]; 046 047 DBResultTable table = new DBResultTable(); 048 UserConfiguration config = WebStartMain.getDefaultConfig(); 049 try { 050 URL u = new URL(path); 051 052 //File f = new File(u.toURI()); 053 054 table.show(u,config); 055 } catch (Exception e){ 056 JOptionPane.showMessageDialog(null, 057 e.getMessage()); 058 return; 059 } 060 } 061 062 063 } 064}