Deprecated-Unsupported/Java Peojects/Bookshelf/src/Bookshelf.java

22 lines
758 B
Java

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
public class Bookshelf extends Application {
@Override
public void start(final Stage stage) throws Exception {
Scene scene = new Scene(FXMLLoader.load(Bookshelf.class.getResource("resources/window.fxml")));
stage.initStyle(StageStyle.TRANSPARENT);
scene.getStylesheets().add("resources/stylesheet.css");
stage.setScene(scene);
stage.setResizable(false); // keeps window from resizing
stage.setTitle("Bookshelf");
stage.show();
}
public static void main(String[] args) { launch(args); }
}