| package javafxapp; | |
| /* | |
| * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | |
| * Click nbfs://nbhost/SystemFileSystem/Templates/javafx/FXMain.java to edit this template | |
| */ | |
| import javafx.application.Application; | |
| import javafx.fxml.FXMLLoader; | |
| import javafx.scene.Scene; | |
| import javafx.stage.Stage; | |
| /** | |
| * | |
| * @author alan | |
| */ | |
| public class FXMain extends Application { | |
| @Override | |
| public void start(Stage primaryStage) throws Exception{ | |
| FXMLLoader loader = new FXMLLoader(getClass().getResource("FXML.fxml")); | |
| primaryStage.setScene(new Scene(loader.load())); | |
| primaryStage.setTitle("Hello World!"); | |
| primaryStage.show(); | |
| } | |
| /** | |
| * @param args the command line arguments | |
| */ | |
| public static void main(String[] args) { | |
| launch(args); | |
| } | |
| } | |