Package ca.nengo.ui

Source Code of ca.nengo.ui.NengoLauncher

package ca.nengo.ui;

//import org.java.ayatana.ApplicationMenu;
//import org.java.ayatana.AyatanaDesktop;
import org.simplericity.macify.eawt.Application;
import org.simplericity.macify.eawt.DefaultApplication;

public class NengoLauncher {

    /**
     * Runs NengoGraphics with a default name
     *
     * @param args
     */
    public static void main(String[] args) {
        System.setProperty("apple.laf.useScreenMenuBar", "true");
        System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Nengo");
        Application application = new DefaultApplication();
    
        NengoGraphics ng = new NengoGraphics();
        ng.setApplication(application);
        //if (AyatanaDesktop.isSupported()) {
        //  ApplicationMenu.tryInstall(ng);
        //}
    }
}
TOP

Related Classes of ca.nengo.ui.NengoLauncher

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.