/******************** * 2004 Jalview Reengineered * Barton Group * Dundee University * * AM Waterhouse *******************/ package jalview.bin; import jalview.gui.*; import javax.swing.*; public class Jalview { public static void main(String[] args) { try{ UIManager.setLookAndFeel //("javax.swing.plaf.metal.MetalLookAndFeel"); ( UIManager.getCrossPlatformLookAndFeelClassName() ); // ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); // ("com.sun.java.swing.plaf.motif.MotifLookAndFeel" ); } catch (Exception ex) {} JFrame.setDefaultLookAndFeelDecorated(true); Desktop frame = new Desktop(); frame.setResizable(true); frame.setVisible(true); if(args!=null && args.length>0) { String file = args[0]; jalview.bin.Cache.LAST_DIRECTORY = file; String protocol = "File"; if(file.indexOf("http:")>-1) protocol = "URL"; String format = jalview.io.IdentifyFile.Identify(file, protocol); frame.LoadFile(file, protocol, format); } } }