add initial files
added files from own repo, updated readme
This commit is contained in:
27
Main.java
Normal file
27
Main.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package fractalTreeDraw;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class Main extends Application {
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws Exception {
|
||||
Parent root = FXMLLoader.load(getClass().getResource("scene.fxml"));
|
||||
root.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
|
||||
stage.setTitle("Fractal Tree Viewer");
|
||||
stage.setScene(new Scene(root));
|
||||
stage.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user