Deleted FileChooserExample
Was obsolete.
This commit is contained in:
parent
25a59a1d57
commit
f3cb444f7c
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user