本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例5: main
import org.jdesktop.application.Application; //导入方法依赖的package包/类
public static final void main (String... args)
{
Application.launch(Appl.class, null);
}
示例6: testAppl
import org.jdesktop.application.Application; //导入方法依赖的package包/类
@Test
public void testAppl ()
{
Application.launch(Appl.class, null);
}
示例7: testAppl
import org.jdesktop.application.Application; //导入方法依赖的package包/类
@Test
public void testAppl ()
{
Application.launch(Appl.class, null);
}
示例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);
}