Deprecated-Unsupported/Java Projects/WebCapImg/src/WebCapImgFX.java

28 lines
1000 B
Java
Executable File

package com.itdominator.webcapimgfx;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.image.Image;
public class WebCapImgFX extends Application {
@Override
public void start(final Stage stage) throws Exception {
FXMLLoader loader = new FXMLLoader(getClass().getResource("resources/Window.fxml"));
loader.setController(new Controller());
loader.load();
Scene scene = new Scene(loader.getRoot());
scene.getStylesheets().add("/com/itdominator/webcapimgfx/resources/stylesheet.css");
stage.setScene(scene);
stage.setTitle("WebCapImgFX");
stage.setMinWidth(800);
stage.setMinHeight(600);
stage.getIcons().add(new Image(WebCapImgFX.class.getResourceAsStream("resources/WebCapImgFX.png")));
stage.show();
}
public static void main(String[] args) { launch(args); }
}