@@ -38,6 +38,7 @@ public static Boolean getTwoChoiceAnswer(String question, String trueOption, Str
38
38
39
39
BorderPane borderPane = new BorderPane ();
40
40
Text text = new Text (question );
41
+ text .setWrappingWidth (350 );
41
42
text .setFont (new Font ("Bold" , 14 ));
42
43
text .setStyle ("-fx-fill: white" );
43
44
HBox hBox = new HBox (text );
@@ -67,7 +68,7 @@ public static Boolean getTwoChoiceAnswer(String question, String trueOption, Str
67
68
hBox1 .getChildren ().addAll (yesButton , noButton );
68
69
borderPane .setBottom (hBox1 );
69
70
70
- Scene scene = new Scene (borderPane , 350 , 70 );
71
+ Scene scene = new Scene (borderPane , 400 , 150 );
71
72
getYesOrNoAnswerPopupWindow .setScene (scene );
72
73
getYesOrNoAnswerPopupWindow .setTitle ("Duel" );
73
74
getYesOrNoAnswerPopupWindow .showAndWait ();
@@ -83,6 +84,7 @@ public static String getStringAnswerPopupWindow(String title, String question) {
83
84
84
85
BorderPane borderPane = new BorderPane ();
85
86
Text text = new Text (question );
87
+ text .setWrappingWidth (450 );
86
88
text .setFont (new Font ("Bold" , 14 ));
87
89
text .setStyle ("-fx-background-color: #0404e9; -fx-fill: white" );
88
90
TextField textField = new TextField (null );
@@ -111,7 +113,7 @@ public static String getStringAnswerPopupWindow(String title, String question) {
111
113
hBox .setAlignment (Pos .CENTER );
112
114
borderPane .setBottom (hBox );
113
115
114
- getStringAnswerPopupWindow .setScene (new Scene (borderPane , 450 , 250 ));
116
+ getStringAnswerPopupWindow .setScene (new Scene (borderPane , 500 , 300 ));
115
117
getStringAnswerPopupWindow .setResizable (false );
116
118
getStringAnswerPopupWindow .setTitle (title );
117
119
getStringAnswerPopupWindow .showAndWait ();
0 commit comments