23
23
import javafx .scene .Scene ;
24
24
import javafx .scene .control .Button ;
25
25
import javafx .scene .control .Label ;
26
- import javafx .scene .control .ProgressBar ;
27
26
import javafx .scene .control .ProgressIndicator ;
28
27
import javafx .scene .image .Image ;
29
- import javafx .scene .layout .HBox ;
30
28
import javafx .scene .layout .Pane ;
31
29
import javafx .scene .layout .Priority ;
32
30
import javafx .scene .layout .VBox ;
31
+ import javafx .scene .text .TextAlignment ;
33
32
import javafx .stage .Stage ;
34
33
import nsusbloader .AppPreferences ;
35
34
import nsusbloader .MediatorControl ;
41
40
public class FilesDropHandle {
42
41
43
42
public FilesDropHandle (List <File > files , String filesRegex , String foldersRegex ){
44
-
45
- //
46
- // TODO: ADD GRAPHICS BEFORE RELEASE !
47
- //
48
-
49
43
FilesDropHandleTask filesDropHandleTask = new FilesDropHandleTask (files , filesRegex , foldersRegex );
50
44
51
45
ResourceBundle resourceBundle = MediatorControl .getInstance ().getResourceBundle ();
@@ -54,9 +48,10 @@ public FilesDropHandle(List<File> files, String filesRegex, String foldersRegex)
54
48
ProgressIndicator progressIndicator = new ProgressIndicator ();
55
49
progressIndicator .setProgress (ProgressIndicator .INDETERMINATE_PROGRESS );
56
50
57
- Label downloadStatusLabel = new Label ();
58
- downloadStatusLabel .setWrapText (true );
59
- downloadStatusLabel .textProperty ().bind (filesDropHandleTask .messageProperty ());
51
+ Label statusLabel = new Label ();
52
+ statusLabel .setWrapText (true );
53
+ statusLabel .setTextAlignment (TextAlignment .CENTER );
54
+ statusLabel .textProperty ().bind (filesDropHandleTask .messageProperty ());
60
55
61
56
Pane fillerPane1 = new Pane ();
62
57
Pane fillerPane2 = new Pane ();
@@ -68,23 +63,23 @@ public FilesDropHandle(List<File> files, String filesRegex, String foldersRegex)
68
63
parentVBox .setPadding (new Insets (5.0 ));
69
64
parentVBox .setFillWidth (true );
70
65
parentVBox .getChildren ().addAll (
71
- downloadStatusLabel ,
66
+ statusLabel ,
72
67
fillerPane1 ,
73
68
progressIndicator ,
74
69
fillerPane2 ,
75
70
cancelButton
76
- ); // TODO:FIX
71
+ );
77
72
78
73
VBox .setVgrow (fillerPane1 , Priority .ALWAYS );
79
74
VBox .setVgrow (fillerPane2 , Priority .ALWAYS );
80
75
81
76
Stage stage = new Stage ();
82
77
stage .setTitle (resourceBundle .getString ("windowTitleAddingFiles" ));
83
78
stage .getIcons ().addAll (
84
- new Image ("/res/dwnload_ico32x32 .png" ), //TODO: REDRAW
85
- new Image ("/res/dwnload_ico48x48 .png" ),
86
- new Image ("/res/dwnload_ico64x64 .png" ),
87
- new Image ("/res/dwnload_ico128x128 .png" )
79
+ new Image ("/res/info_ico32x32 .png" ),
80
+ new Image ("/res/info_ico48x48 .png" ),
81
+ new Image ("/res/info_ico64x64 .png" ),
82
+ new Image ("/res/info_ico128x128 .png" )
88
83
);
89
84
stage .setMinWidth (300 );
90
85
stage .setMinHeight (175 );
0 commit comments