File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Joptionpane on top of the screen Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Joptionpane on top of the screen" Watch "Joptionpane on top of the screen" New topic
Author

Joptionpane on top of the screen

Mike Sullivan
Greenhorn

Joined: Jul 01, 2001
Posts: 21
If the GUI application is started with incorrect number of command line arguments, I need to display a message box on the center (TOP) of the screen. Once user presses ok on the message box, the app needs to exit.
I am not really sure on how to handle this. Please help.
[This message has been edited by Mike Sullivan (edited July 03, 2001).]
Devu Shah
Ranch Hand

Joined: Jun 21, 2001
Posts: 50
Originally posted by Mike Sullivan:
If the GUI application is started with incorrect number of command line arguments, I need to display a message box on the center (TOP) of the screen. Once user presses ok on the message box, the app needs to exit.
I am not really sure on how to handle this. Please help.
[This message has been edited by Mike Sullivan (edited July 03, 2001).]


I have done this by checking the length of args i.e [args.length] and compare it with the no of parameters u want
if they are not equal then i use the static method of
JOption pane i.e JOptionpane.showMessageDialog(null,message,name
int option);
then i check whether ok button is pressed if yes than i exit.
 
 
subject: Joptionpane on top of the screen
 
Threads others viewed
Windows and location
NX: URLy Bird 1.3.1 Suncertify.properties
Textbook on image
primitive casting
Adding components dynamically
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture