Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP: Configuration Dialog and Properties File

 
Sham Delaney
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my Server and Client start, I show a small dialog for each, asking user to enter in Port Number and Database Location\Hostname. This data is stored in a properties file.

The next time the user starts either client or server, these dialogs appear pre-populated with the data entered the last time the user started the client or server.
The very first time the user starts the client or server, The properties file will not exist and hence the port no. and database fields on the dialog are blank.

Am i violating any must's here and is what I am doing legal?
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I do pretty much the same thing. On initial starting (no properties file), the database selection dialog still comes up but the user must specify a database location in order to 'connect to something'. On subsequent loads, this (and any other databases they define through the dialog) are available to choose.

Cheers, Jared.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do pretty much the same thing, except I generate some default values if nothing exists (just the default RMI port, filename of the supplied database file in the current directory, and localhost for the server address).

Added touch of userfriendliness.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic