Initial commit...
This commit is contained in:
23
Java Peojects/FXImager/src/v0.0.2/Main.java
Normal file
23
Java Peojects/FXImager/src/v0.0.2/Main.java
Normal file
@@ -0,0 +1,23 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
|
||||
|
||||
|
||||
public class Main extends Application {
|
||||
@Override
|
||||
public void start(final Stage stage) throws Exception {
|
||||
Scene scene = new Scene(FXMLLoader.load(Main.class.getResource("window.fxml")));
|
||||
scene.getStylesheets().add("stylesheet.css");
|
||||
stage.setScene(scene);
|
||||
//stage.setResizable(false); // keeps window from resizing
|
||||
stage.setTitle("Image Viewer");
|
||||
stage.setMinWidth(300);
|
||||
stage.setMinHeight(300);
|
||||
stage.show();
|
||||
}
|
||||
// needed because you know... it's java.
|
||||
public static void main(String[] args) { launch(args); }
|
||||
}
|
Reference in New Issue
Block a user