375
|
1 package alice.test.topology.aquarium.fx;
|
|
2
|
|
3 import java.io.IOException;
|
|
4
|
|
5 import javafx.application.Application;
|
|
6 import javafx.fxml.FXMLLoader;
|
|
7 import javafx.scene.Scene;
|
|
8 import javafx.scene.layout.Pane;
|
|
9 import javafx.stage.Stage;
|
|
10
|
|
11 public class Aquarium extends Application {
|
|
12
|
|
13 @Override
|
|
14 public void start(Stage primaryStage) throws IOException {
|
|
15 primaryStage.setTitle("Aquarium "+ getParameters().getRaw().get(0));
|
|
16 primaryStage.setResizable(false);
|
|
17 Pane myPane = (Pane)FXMLLoader.load(getClass().getResource("aquarium.fxml"));
|
|
18 Scene myScene = new Scene(myPane);
|
|
19 primaryStage.setScene(myScene);
|
|
20 primaryStage.show();
|
|
21 }
|
|
22
|
|
23 public static void main(String[] args) {
|
|
24 launch(args);
|
|
25 }
|
|
26
|
|
27 }
|