permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Persistent Settings 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 "B&S: Persistent Settings" Watch "B&S: Persistent Settings" New topic

B&S: Persistent Settings

Michael Vargenstien
Ranch Hand

Joined: Jan 27, 2007
Posts: 61
Hello All!

I am getting really close to finish this baby up!! I have been working on the client for the last month and I must say that swing rocks. I've applied it to several java installers kinda like sun's and it works like a charm. Getting to this assignment, I'm attempting to implement the database dialogue box where the user must enter the database location or server and port number depending on the mode in execution. That being said, since I'm trying to use the observer pattern in this case, does it make sense to store settings when the user connects to the main application, more programmtically, within my Observable update() method? Or should the users have the ability to save it at thier own descretion within in the main console?

The instructions.html say the following:

Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. 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 which must be located in the current working directory.

I guess this is really preference but I'm totally open to some input.

I agree. Here's the link:
subject: B&S: Persistent Settings
It's not a secret anymore!