本文整理汇总了Java中javafx.application.Application.launch方法的典型用法代码示例。如果您正苦于以下问题:Java Application.launch方法的具体用法?Java Application.launch怎么用?Java Application.launch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.application.Application
的用法示例。
在下文中一共展示了Application.launch方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: plot
import javafx.application.Application; //导入方法依赖的package包/类
public static void plot(LineGraph... graphs) {
if (plotted)
throw new RuntimeException("Plot can be called only once. Instead put all graphs in one call.");
plotted = true;
Plotter.graphs = graphs;
try {
Application.launch();
} catch (IllegalStateException e) {
showGraphs();
}
}
示例2: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
if(args.length >= 1){
try{
StarsRiver.MainWindows.date = LocalDate.parse(args[0],DateTimeFormatter.ofPattern("yyyy-MM-dd"));
}
catch(Exception e){
StarsRiver.MainWindows.date = LocalDate.now();
}
}
Application.launch(MainWindows.class, args);
}
示例3: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) throws IOException {
try {
Application.launch(args);
System.exit(0);
} catch (Exception e) {
LOGGER.error("Uncaught exception", e);
System.exit(1);
}
}
示例4: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(args);
}
示例5: javaFxTest
import javafx.application.Application; //导入方法依赖的package包/类
@Test
public void javaFxTest() {
JavaFxTest.setToBeViewed(this::simpleScene);
Application.launch(JavaFxTest.class);
}
示例6: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(args);
}
示例7: main
import javafx.application.Application; //导入方法依赖的package包/类
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Application.launch(Main.class, (java.lang.String[])null);
}
示例8: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
// Launch application
Application.launch(args);
}
示例9: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(Gui.class, args);
}
示例10: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(GeneralTest.class);
}
示例11: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(TreeTableViewSample.class, args);
}
示例12: main
import javafx.application.Application; //导入方法依赖的package包/类
public static void main(String[] args) {
Application.launch(Main.class, (java.lang.String[]) null);
}