@@ -73,7 +73,7 @@ public static void main(String[] args) throws Exception {
7373
7474 public static final class PromptTest {
7575 public static void main (String [] args ) {
76- promptUser (new File ("C:/Program Files/Java/jdk-25" ), 17 );
76+ promptUser (new File ("C:/Program Files/Java/jdk-25" ), 0 );
7777 }
7878 }
7979
@@ -150,7 +150,8 @@ static File promptUser(File detected, int currentJava) {
150150
151151 continueBtn .setEnabled (hasDetected );
152152
153- continueBtn .setPreferredSize (new Dimension (180 , 30 ));
153+ // Make the continue button long and the other two standard width
154+ continueBtn .setPreferredSize (new Dimension (360 , 30 ));
154155 selectBtn .setPreferredSize (new Dimension (180 , 30 ));
155156 exitBtn .setPreferredSize (new Dimension (180 , 30 ));
156157
@@ -225,20 +226,23 @@ public void windowClosed(WindowEvent e) {
225226 gbc .fill = GridBagConstraints .HORIZONTAL ;
226227 gbc .weightx = 1.0 ;
227228
228- // Row 0: Select and Exit
229+ // Row 0: Continue with detected (spans both columns)
229230 gbc .gridx = 0 ;
230231 gbc .gridy = 0 ;
232+ gbc .gridwidth = 2 ;
233+ gbc .anchor = GridBagConstraints .CENTER ;
234+ buttonBlock .add (continueBtn , gbc );
235+
236+ // Row 1: Select and Exit
237+ gbc .gridwidth = 1 ;
238+ gbc .gridy = 1 ;
239+ gbc .gridx = 0 ;
240+ gbc .anchor = GridBagConstraints .CENTER ;
231241 buttonBlock .add (selectBtn , gbc );
232242
233243 gbc .gridx = 1 ;
234244 buttonBlock .add (exitBtn , gbc );
235245
236- // Row 1: Continue with detected (spans both columns, centered)
237- gbc .gridx = 0 ;
238- gbc .gridy = 1 ;
239- gbc .gridwidth = 2 ;
240- gbc .anchor = GridBagConstraints .CENTER ;
241- buttonBlock .add (continueBtn , gbc );
242246
243247 root .add (buttonBlock );
244248
0 commit comments