FileDocCategorySizeDatePackage
Application.javaAPI DocAndroid 1.5 API1965Wed May 06 22:41:08 BST 2009com.android.draw9patch

Application

public class Application extends Object

Fields Summary
Constructors Summary
Methods Summary
private static voidinitUserInterface()

        System.setProperty("apple.laf.useScreenMenuBar", "true");
        System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Draw 9-patch");

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
    
public static voidmain(java.lang.String args)

        initUserInterface();
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                String arg = args.length > 0 ? args[0] : null;
                MainFrame frame = new MainFrame(arg);
                frame.setDefaultCloseOperation(MainFrame.EXIT_ON_CLOSE);
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
            }
        });