Skip to content
Snippets Groups Projects
Commit 987f12a8 authored by Dean Jonas Finkes's avatar Dean Jonas Finkes
Browse files

Directory Chooser inserted

parent 9894aa5d
No related branches found
No related tags found
1 merge request!1Initial gui, closes #5
...@@ -3,14 +3,23 @@ package ui; ...@@ -3,14 +3,23 @@ package ui;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.control.Control; import javafx.scene.control.Control;
import javafx.scene.text.Text;
import javafx.stage.DirectoryChooser;
public class SelectScene extends Control { public class SelectScene extends Control {
private MainApp app; private MainApp app;
@FXML
private Text dragText;
@FXML @FXML
private void handleSelectButtonAction(ActionEvent event) { private void handleSelectButtonAction(ActionEvent event) {
// TODO: open dialog, etc // TODO: open dialog, etc
DirectoryChooser directoryChooser = new DirectoryChooser();
directoryChooser.setTitle("Open Java Application Folder");
directoryChooser.showDialog(dragText.getScene().getWindow());
app.showMainScreen(); app.showMainScreen();
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<AnchorPane prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ui.SelectScene"> <AnchorPane prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ui.SelectScene">
<children> <children>
<Text layoutX="310.0" layoutY="221.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Drag Folder" wrappingWidth="177.015625"> <Text fx:id="dragText" layoutX="310.0" layoutY="221.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Drag Folder" wrappingWidth="177.015625">
<font> <font>
<Font size="32.0" /> <Font size="32.0" />
</font> </font>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment