package graphics; import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; public class Graphics extends Application { @Override public void start(Stage primaryStage) { try { primaryStage.setTitle("Гістограма"); AnchorPane root = (AnchorPane) FXMLLoader.load(getClass().getResource("/graphics/FXML.fxml")); Scene scene = new Scene(root, 700, 600); primaryStage.setScene(scene); primaryStage.show(); } catch (IOException e) {e.printStackTrace();} } public static void main(String[] args) {launch(args);} }