@@ -2797,21 +2797,29 @@ public static void initDir() {
27972797 JPanel portableModePanel = Util .createOptionMessagePanel (portableModeMessage );
27982798
27992799 JFrame portableModeFrame = Util .launchHiddenFrame ();
2800+ String [] options = new String [3 ];
2801+ options [0 ] = "Yes" ;
2802+ options [1 ] = "No" ;
2803+ options [2 ] = "I'm not sure :-(" ;
28002804
28012805 int response =
2802- JOptionPane .showConfirmDialog (
2806+ JOptionPane .showOptionDialog (
28032807 portableModeFrame ,
2804- portableModePanel ,
2805- Launcher .appName ,
2806- JOptionPane .YES_NO_OPTION ,
2807- JOptionPane .INFORMATION_MESSAGE );
2808+ portableModePanel , // message
2809+ Launcher .appName , // title
2810+ JOptionPane .YES_NO_CANCEL_OPTION ,
2811+ JOptionPane .INFORMATION_MESSAGE ,
2812+ null ,
2813+ options ,
2814+ null
2815+ );
28082816
28092817 if (response == JOptionPane .YES_OPTION ) {
28102818 String portableModeAcceptMessage =
2811- "Portable mode has been ENABLED"
2819+ "Portable mode has been ENABLED. "
28122820 + "<br/>"
28132821 + "<br/>"
2814- + "Deletion of the \" config.ini\" file will reset this choice" ;
2822+ + "Deletion of the \" config.ini\" file will reset this choice. " ;
28152823 JPanel portableModeAcceptPanel = Util .createOptionMessagePanel (portableModeAcceptMessage );
28162824
28172825 JOptionPane .showMessageDialog (
@@ -2825,10 +2833,10 @@ public static void initDir() {
28252833 Dir .CONFIG_DIR = Dir .JAR ;
28262834 } else {
28272835 String portableModeDenyMessage =
2828- "Portable mode will NOT be enabled"
2836+ "Portable mode will not be enabled. "
28292837 + "<br/>"
28302838 + "<br/>"
2831- + "Deletion of the \" rscplus.lock\" file will reset this choice" ;
2839+ + "Deletion of the \" rscplus.lock\" file will reset this choice. " ;
28322840 JPanel portableModeDenyPanel = Util .createOptionMessagePanel (portableModeDenyMessage );
28332841
28342842 JOptionPane .showMessageDialog (
0 commit comments