aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Should client GUI render if exception occurs during startup ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Should client GUI render if exception occurs during startup ?" Watch "Should client GUI render if exception occurs during startup ?" New topic
Author

Should client GUI render if exception occurs during startup ?

dean tomlinson
Ranch Hand

Joined: Jan 31, 2002
Posts: 94
dear guys,
what's the general convention for handling exceptions that occur during aplication startup.
is it ok to just report this to the console, or is it preferred to render the GUI, and pop up a dialog explaining there is something wrong ?
is there any marks in this for our assignment. starting to worry - booked my exam for wednesday morning, and seem to be uncovering more and more each day !
Steven Sloggett
Greenhorn

Joined: Feb 11, 2002
Posts: 15
Originally posted by dean tomlinson:
dear guys,
what's the general convention for handling exceptions that occur during aplication startup.
is it ok to just report this to the console, or is it preferred to render the GUI, and pop up a dialog explaining there is something wrong ?
is there any marks in this for our assignment. starting to worry - booked my exam for wednesday morning, and seem to be uncovering more and more each day !

I think there's nothing wrong with sending the exception to the console, especially if there is no GUI to display your message on!


Steven
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
Use a JOptionPane to display any startup exception with a "null" for the JFrame instance.
dean tomlinson
Ranch Hand

Joined: Jan 31, 2002
Posts: 94
thanks sai - your joptionpane idea sounds just what i'm looking for. cheers - dean
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Should client GUI render if exception occurs during startup ?