Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JOptionPane (Not showing on top/front)

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
You got style baby! More than this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic