Mercurial > hg > Database > Alice
diff src/main/java/alice/test/topology/aquarium/fx/Aquarium.java @ 375:e58f5f74748e multicast
create foundation
author | sugi |
---|---|
date | Wed, 04 Jun 2014 00:24:07 +0900 |
parents | |
children | ca093d55a886 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/alice/test/topology/aquarium/fx/Aquarium.java Wed Jun 04 00:24:07 2014 +0900 @@ -0,0 +1,27 @@ +package alice.test.topology.aquarium.fx; + +import java.io.IOException; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; + +public class Aquarium extends Application { + + @Override + public void start(Stage primaryStage) throws IOException { + primaryStage.setTitle("Aquarium "+ getParameters().getRaw().get(0)); + primaryStage.setResizable(false); + Pane myPane = (Pane)FXMLLoader.load(getClass().getResource("aquarium.fxml")); + Scene myScene = new Scene(myPane); + primaryStage.setScene(myScene); + primaryStage.show(); + } + + public static void main(String[] args) { + launch(args); + } + +}