Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NeoSuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Wulf
NeoSuit
Commits
987f12a8
Commit
987f12a8
authored
9 years ago
by
Dean Jonas Finkes
Browse files
Options
Downloads
Patches
Plain Diff
Directory Chooser inserted
parent
9894aa5d
No related branches found
No related tags found
1 merge request
!1
Initial gui, closes #5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NeoSuit/src/main/java/ui/SelectScene.java
+9
-0
9 additions, 0 deletions
NeoSuit/src/main/java/ui/SelectScene.java
NeoSuit/src/main/java/ui/SelectScreen.fxml
+1
-1
1 addition, 1 deletion
NeoSuit/src/main/java/ui/SelectScreen.fxml
with
10 additions
and
1 deletion
NeoSuit/src/main/java/ui/SelectScene.java
+
9
−
0
View file @
987f12a8
...
@@ -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
();
}
}
...
...
This diff is collapsed.
Click to expand it.
NeoSuit/src/main/java/ui/SelectScreen.fxml
+
1
−
1
View file @
987f12a8
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment