この記事は書きかけです。
環境
- Java8を使います。
まずはHello,World!
Main.java
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.Group;
import javafx.scene.text.Text;
import javafx.geometry.Pos;
public class Main extends Application{
public static void main(String[] args){
launch(args);
}
public void start(Stage stage){
Group p = new Group();
stage.setScene(new Scene(p,480,352));
stage.show();
Text t = new Text("Hello,World!");
p.getChildren().add(t);
}
}