Datasets:
ArXiv:
License:
File size: 1,076 Bytes
c574d3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
package rd222dv_assign2;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class RandomMain extends Application {
//Stage window;
@Override
public void start(Stage primaryStage) {
RandomPane rp = new RandomPane();
VBox vbox = new VBox(); //packing the RandomPane in a box
vbox.getChildren().addAll(rp);
//Scene and window
Scene scene = new Scene(vbox, 550, 200); //creating the Scene
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) { //for running the app
launch(args);
}
}
/*public void start(Stage primaryStage) {
primaryStage.setTitle("Press the button!");
RandomPane rp = new RandomPane();
Scene scene = new Scene(rp, 300, 200);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}*/
|