This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Application configuration GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Application configuration GUI" Watch "Application configuration GUI" New topic
Author

Application configuration GUI

Ara Tatous
Greenhorn

Joined: Jul 11, 2005
Posts: 16
Hello All,

I have a question about the configuration application. Sun requirements says that the assessor shouldn't hand edit any file. So I came up with a GUI base application which enables user to update configuration information. I've added this as an extra command line parameter. So I have
[alone | server | config].
And absence of any parameter runs the application GUI in networked mode.

Do you think that might be a problem. Cause according to requirements, he should only have
[alone | server] command line parameter?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11432
    
  85

Hi Ara,
From the instructions:
Your programs must not require use of command line arguments other than the single mode flag, which must be supported.
I think you are not meeting this requirement, which is a must requirement meaning you can get automatic failure.

In my opinion it is better to bring up the configuration GUI every time (with default values loaded), which the assessor can just confirm or change as required.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Thomas Paul Bigbee
Ranch Hand

Joined: Jun 28, 2005
Posts: 71
I was wondering about this a well, I used a FileChooser and FileFilter which the user selects the Database for the Server or Stand-Alone app on start-up, not choosing the db or a corrupted db gives an error dialog and exists, I'm wondering if this is acceptable.

Tom
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11432
    
  85

Hi Tom,

Sounds good. The only additional thing I would do is make sure that the database that was selected the last time the application was run (if any) is offered as a default this time around. This is to meet with the following requirement:
From the instructions
All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
Regards, Andrew
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application configuration GUI