• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application configuration GUI

 
Ara Tatous
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic