|
import javafx.application.Application;
|
|
import javafx.scene.Group;
|
|
import javafx.scene.Scene;
|
|
import javafx.scene.paint.Color;
|
|
import javafx.stage.Stage;
|
|
|
|
public class Hello3d extends Application {
|
|
|
|
@Override
|
|
public void start(final Stage stage) {
|
|
final Group root = new Group();
|
|
|
|
final Scene scene = new Scene(root, 800, 600, Color.BLACK);
|
|
|
|
stage.setScene(scene);
|
|
stage.setTitle("Hello JavaFX 3D World");
|
|
stage.show();
|
|
}
|
|
|
|
public static void main(final String... args) {
|
|
launch(args);
|
|
}
|
|
}
|