1 /********************
\r
2 * 2004 Jalview Reengineered
\r
10 package jalview.bin;
\r
12 import jalview.gui.*;
\r
13 import javax.swing.*;
\r
15 public class Jalview
\r
18 public static void main(String[] args) {
\r
20 UIManager.setLookAndFeel //("javax.swing.plaf.metal.MetalLookAndFeel");
\r
21 ( UIManager.getCrossPlatformLookAndFeelClassName() );
\r
23 // ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
\r
24 // ("com.sun.java.swing.plaf.motif.MotifLookAndFeel" );
\r
26 catch (Exception ex)
\r
29 // JFrame.setDefaultLookAndFeelDecorated(true);
\r
30 Desktop frame = new Desktop();
\r
31 frame.setResizable(true);
\r
32 frame.setVisible(true);
\r
35 if(args!=null && args.length>0)
\r
37 String file = args[0];
\r
38 jalview.bin.Cache.LAST_DIRECTORY = file;
\r
39 String protocol = "File";
\r
40 if(file.indexOf("http:")>-1)
\r
43 String format = jalview.io.IdentifyFile.Identify(file, protocol);
\r
45 frame.LoadFile(file, protocol, format);
\r