Added python project; fixed spelling of folder
This commit is contained in:
27
Java Projects/WebCapImg/src/WebCapImgFX.java
Executable file
27
Java Projects/WebCapImg/src/WebCapImgFX.java
Executable file
@@ -0,0 +1,27 @@
|
||||
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); }
|
||||
}
|
||||
Reference in New Issue
Block a user