I am using the following code to display the Message Box. On NT it shows up on the top (front) of all screens. But on Windows 2000, it gets messed up & hides behind other DOS windows. I run this app using the command : start java AppName argument1 argument2 The code is as follows:
JWindow wnd = new JWindow() ; String message = "Error in \n" + " command line arguments"; JOptionPane.showMessageDialog(wnd.getContentPane() , message,"Error",JOptionPane.ERROR_MESSAGE) ; wnd.show(); System.exit(0);
If I run the same command from the DOS prompt without using start option, it works fine. What a frustrating POS! Would greatly appreciate help from the Java gurus here.
[This message has been edited by Mike Sullivan (edited July 04, 2001).]