Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

UB client DB connection

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I'm starting the client UI and want to make sure my logic is correct. I'm thinking
1) when JFrame opens immediately pops up the DB chooser window (local or remote)
2) once selected/connected, user clicks away to search, create etc.

Now in the specs it mentions:
a) the user is able to choose the database location
b) 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.

If local, the app runs as "standalone" from default (hard-coded) location? If remote, am I suppose to get the server's address/port etc from the properties file where the data file resides? Can user change the properties file's attributes? What other attributes are needed in the properties file? What format is the properties file in - XML or plain text?
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I haven't started the GUI yet, but here is I consider to to :

All parameters like database location, server's address/port are read from the suncertify.properties file. Default values are provided but the user can overwrite them via the connection GUIs.
For the properties file, plain text format should be the best option, given the simple information to store.

Chris
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Chris for your input. Before I really start with the nitty gritty client/server, I need to play around with JTable and multithreading a bit. Then I will need to get down to business when the real design starts lol
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic