本文整理汇总了Java中gov.nasa.worldwind.Configuration.isMacOS方法的典型用法代码示例。如果您正苦于以下问题:Java Configuration.isMacOS方法的具体用法?Java Configuration.isMacOS怎么用?Java Configuration.isMacOS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nasa.worldwind.Configuration
的用法示例。
在下文中一共展示了Configuration.isMacOS方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import gov.nasa.worldwind.Configuration; //导入方法依赖的package包/类
public static void main( String[] args) {
if (Configuration.isMacOS()) {
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "GeoMapApp");
}
com.Ostermiller.util.Browser.init();
WWMapApp.main(args);
}
示例2: start
import gov.nasa.worldwind.Configuration; //导入方法依赖的package包/类
public static AppFrame start(String appName, Class appFrameClass)
{
if (Configuration.isMacOS() && appName != null)
{
System.setProperty("com.apple.mrj.application.apple.menu.about.name", appName);
}
try
{
final AppFrame frame = (AppFrame) appFrameClass.newInstance();
frame.setTitle(appName);
// SEG -- CHANGED didn't want full app to be closed
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
java.awt.EventQueue.invokeLater(new Runnable()
{
public void run()
{
frame.setVisible(true);
}
});
return frame;
}
catch (Exception e)
{
e.printStackTrace();
return null;
}
}
示例3: main
import gov.nasa.worldwind.Configuration; //导入方法依赖的package包/类
public static void main( String[] args ) throws Exception {
if (Configuration.isMacOS() && APPNAME != null) {
System.setProperty("com.apple.mrj.application.apple.menu.about.name", APPNAME);
}
GuiUtilities.setDefaultLookAndFeel();
Logger.INSTANCE.init();
openNww(APPNAME, -1);
}
示例4: SherpaGui
import gov.nasa.worldwind.Configuration; //导入方法依赖的package包/类
private SherpaGui() {
System.setProperty("java.net.useSystemProxies", "true");
if (Configuration.isMacOS()) {
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "World Wind Application");
System.setProperty("com.apple.mrj.application.growbox.intrudes", "false");
System.setProperty("apple.awt.brushMetalLook", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", APP_NAME);
} else if (Configuration.isWindowsOS()) {
/*
* prevents flashing during window resizing
*/
System.setProperty("sun.awt.noerasebackground", "true");
}
}