Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Picturerama
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gruppe 12
Picturerama
Merge requests
!88
Rename and move files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Rename and move files
refactor/rename-files
into
dev
Overview
13
Commits
3
Pipelines
0
Changes
14
All threads resolved!
Show all comments
Merged
Olaf Rosendahl
requested to merge
refactor/rename-files
into
dev
4 years ago
Overview
13
Commits
3
Pipelines
0
Changes
14
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
dev
version 1
874f1fa1
4 years ago
dev (base)
and
latest version
latest version
66d2bdda
3 commits,
4 years ago
version 1
874f1fa1
1 commit,
4 years ago
14 files
+
128
−
133
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
src/main/App/
Scene
s/ConfirmationBox.java
→
src/main/App/
Component
s/ConfirmationBox.java
+
6
−
6
Options
package
Scene
s
;
package
Component
s
;
import
Components.
ActionPopup
;
import
Components.
PopupWindow
;
import
javafx.scene.control.Button
;
import
Css.Css
;
/**
* Utility class that is used to create confirmations boxes
*/
class
ConfirmationBox
{
public
class
ConfirmationBox
{
private
static
boolean
answer
;
/**
@@ -23,8 +23,8 @@ class ConfirmationBox {
* @param message the massage that the confirmation box is going to display
* @return the answer of the confirmation box
*/
static
boolean
display
(
String
title
,
String
message
){
ActionPopup
dialogWindow
=
new
ActionPopup
(
250
,
150
);
public
static
boolean
display
(
String
title
,
String
message
){
PopupWindow
dialogWindow
=
new
PopupWindow
(
250
,
150
);
dialogWindow
.
getDialogWindow
().
close
();
Button
yesButton
=
new
Button
(
"Yes"
);
@@ -42,7 +42,7 @@ class ConfirmationBox {
Css
.
setButton
(
150
,
30
,
15
,
yesButton
,
noButton
);
dialogWindow
.
getDialogWindow
().
setTitle
(
"Exit"
);
dialogWindow
.
getDialogWindow
().
setTitle
(
title
);
dialogWindow
.
getDialogText
().
setText
(
message
);
dialogWindow
.
getDialogVbox
().
getChildren
().
addAll
(
yesButton
,
noButton
);
Loading