Package se.zxlisys.osx

Source Code of se.zxlisys.osx.Program

package se.zxlisys.osx;

import se.zxlisys.osx.util.Platform;
import se.zxlisys.osx.view.UnifiedApplicationAdapter;
import se.zxlisys.osx.view.UnifiedFrame;

import com.apple.eawt.Application;

public class Program {
  public static void main(String[] args) {
    Platform.osx();
   
      System.setProperty("apple.awt.graphics.EnableQ2DX", "true");
      System.setProperty("apple.laf.useScreenMenuBar", "true");
      System.setProperty("com.apple.mrj.application.apple.menu.about.name",
          "Unified Swing");
     
      Application app = Application.getApplication();
      app.addApplicationListener(new UnifiedApplicationAdapter());
     
      app.setEnabledAboutMenu(true);
      app.setEnabledPreferencesMenu(true);
     
    UnifiedFrame toolbar = new UnifiedFrame();
    toolbar.setVisible(true);
  }
}
TOP

Related Classes of se.zxlisys.osx.Program

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.