The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JOptionPane (Not showing on top/front) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "JOptionPane (Not showing on top/front)" Watch "JOptionPane (Not showing on top/front)" New topic
Author

JOptionPane (Not showing on top/front)

Mike Sullivan
Greenhorn

Joined: Jul 01, 2001
Posts: 21
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).]
 
 
subject: JOptionPane (Not showing on top/front)
 
Threads others viewed
Tomcat 4.0 Configuration
Cant compile my java files on DOS
open .java file
using the �classpath option in the javac command
running in dos, not command window in windows
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com