com.apple.eawt.Application.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中com.apple.eawt.Application.<init>()方法的一些代码示例,展示了Application.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.<init>()方法的具体详情如下:
包路径:com.apple.eawt.Application
类名称:Application
方法名:<init>

Application.<init>介绍

暂无

代码示例

代码示例来源:origin: stanfordnlp/CoreNLP

public static void enablePrefs(boolean enabled) {
 if (app == null) {
  app = new com.apple.eawt.Application();
 }
 app.setEnabledPreferencesMenu(enabled);
}

代码示例来源:origin: stanfordnlp/CoreNLP

public static void registerMacOSXApplication(TregexGUI inApp) {
 if (app == null) {
  app = new com.apple.eawt.Application();
 }     
 
 if (adapter == null) {
  adapter = new OSXAdapter(inApp);
 }
 app.addApplicationListener(adapter);
}

代码示例来源:origin: deathmarine/Luyten

public static void main(String[] args) {
    // Set a flag that says we are running in OS X
    System.setProperty("us.deathmarine.luyten.Luyten.running_in_osx", "true");

    // Add an adapter as the handler to a new instance of the application
    // class
    @SuppressWarnings("deprecation")
    Application app = new Application();
    app.addApplicationListener(new ApplicationAdapter() {
      public void handleOpenFile(ApplicationEvent e) {
        Luyten.openFileInInstance(new File(e.getFilename()));
      }

      public void handleQuit(ApplicationEvent e) {
        Luyten.quitInstance();
      }
    });

    // Call the superclass's main function
    Luyten.main(args);
  }
}

代码示例来源:origin: net.imagej/ij

public void run(String arg) {
  Application app = new Application();
  app.setEnabledPreferencesMenu(true);
  app.addApplicationListener(this);
}

代码示例来源:origin: imagej/ImageJA

public void run(String arg) {
  Application app = new Application();
  app.setEnabledPreferencesMenu(true);
  app.addApplicationListener(this);
}

代码示例来源:origin: mucommander/mucommander

public EAWTHandler() {
  Application app = new Application();
  // Enable the 'About' menu item
  app.setEnabledAboutMenu(true);
  // Enable the 'Preferences' menu item
  app.setEnabledPreferencesMenu(true);
  // Register this ApplicationListener
  app.addApplicationListener(this);
}

相关文章