Deleted FileChooserExample

Was obsolete.
This commit is contained in:
FUH22860 2022-06-09 15:05:56 +02:00 committed by GitHub
parent 25a59a1d57
commit f3cb444f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,35 +0,0 @@
package model;
import java.io.File;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.FileChooser;
public class FileChooserExample extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("JavaFX App");
FileChooser fileChooser = new FileChooser();
Button button = new Button("Select File");
button.setOnAction(e -> {
File selectedFile = fileChooser.showOpenDialog(primaryStage);
});
VBox vBox = new VBox(button);
Scene scene = new Scene(vBox, 960, 600);
primaryStage.setScene(scene);
primaryStage.show();
}
}