当前位置: 首页>>代码示例>>Java>>正文


Java Application.launch方法代码示例

本文整理汇总了Java中org.jdesktop.application.Application.launch方法的典型用法代码示例。如果您正苦于以下问题:Java Application.launch方法的具体用法?Java Application.launch怎么用?Java Application.launch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jdesktop.application.Application的用法示例。


在下文中一共展示了Application.launch方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
/**
 * Just to allow stand-alone running of this class
 *
 * @param args not used
 */
public static void main (String... args)
{
    standAlone = true;

    // Load repository, with sheet images
    SampleRepository repo = SampleRepository.getGlobalInstance();
    repo.loadAllImages();

    // Set UI Look and Feel
    UILookAndFeel.setUI(null);
    Locale.setDefault(Locale.ENGLISH);

    // Off we go...
    Application.launch(SampleBrowser.class, args);
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:21,代码来源:SampleBrowser.java

示例2: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
public static void main(String args[]) {
	if (Util.MAC_OS_X && !Util.INSIDE_APP_BUNDLE) {
		System.setProperty("apple.laf.useScreenMenuBar", "true");
		System.setProperty("com.apple.mrj.application.apple.menu.about.name", getProperty("id"));
	}

	String lang = WWPreferences.getPreferences().getLanguage();
	if (lang.length() > 0) {
		String[] langParts = lang.split("_");
		switch (langParts.length) {
			case 1:
				Locale.setDefault(new Locale(langParts[0]));
				break;
			case 2:
				Locale.setDefault(new Locale(langParts[0], langParts[1]));
				break;
		}
	}
	Application.launch(WiimoteWhiteboard.class, args);
}
 
开发者ID:operadordecamara,项目名称:wiimote-paintboard,代码行数:21,代码来源:WiimoteWhiteboard.java

示例3: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
/**
 * Just to allow stand-alone running of this class
 *
 * @param args not used
 */
public static void main (String... args)
{
    standAlone = true;

    // Set UI Look and Feel
    UILookAndFeel.setUI(null);
    Locale.setDefault(Locale.ENGLISH);

    // Off we go...
    Application.launch(Trainer.class, args);
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:17,代码来源:Trainer.java

示例4: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
/**
 * Start the application.
 * 
 * @param args - the command line arguments
 */
public static void main(String[] args)
{
   //ActionFactory.getInstance().setPackageNames("", "org.selfbus.sbtools.devtool.actions");
   LookAndFeelManager.setDefaultLookAndFeel();
   Application.launch(DevTool.class, args);
}
 
开发者ID:selfbus,项目名称:development-tools-incubation,代码行数:12,代码来源:DevTool.java

示例5: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
public static final void main (String... args)
{
    Application.launch(Appl.class, null);
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:5,代码来源:BsafTest.java

示例6: testAppl

import org.jdesktop.application.Application; //导入方法依赖的package包/类
@Test
public void testAppl ()
{
    Application.launch(Appl.class, null);
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:6,代码来源:BsafTest.java

示例7: testAppl

import org.jdesktop.application.Application; //导入方法依赖的package包/类
@Test
public void testAppl ()
{
    Application.launch(Appl.class, null);

}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:7,代码来源:BsafTest.java

示例8: main

import org.jdesktop.application.Application; //导入方法依赖的package包/类
/**
 * Start the application.
 * 
 * @param args - the command line arguments
 * @throws UnsupportedLookAndFeelException 
 */
public static void main(String[] args) throws UnsupportedLookAndFeelException
{
   LookAndFeelManager.setDefaultLookAndFeel();
   Application.launch(ProdEdit.class, args);
}
 
开发者ID:selfbus,项目名称:development-tools-incubation,代码行数:12,代码来源:ProdEdit.java


注:本文中的org.jdesktop.application.Application.launch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。