• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HELP: Configuration Dialog and Properties File

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic