This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

B&S GUI => Getting the db info from client  RSS feed

 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know how others are designing this part.

Currently, a JDialog opens when you launch the application and asks for either the db path or ip/port. If the information is not valid, it does not let you through (or else you click Cancel).

Do you think such design is bad ?
Should I rather load the full GUI and provide a "connect to DB" option ?

Thanks advance for any comments
Alex
[ November 18, 2007: Message edited by: Alex Belisle Turcot ]
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
personally I would go for the first option.
the second option implies that if the user decides to change the settings then everything should work fine and there is no need to restart the application.
if this is how you intend to do it then it is ok.
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Musab Al-Rawi:
personally I would go for the first option.
the second option implies that if the user decides to change the settings then everything should work fine and there is no need to restart the application.
if this is how you intend to do it then it is ok.




OK, thanks for the encouragement Musab I setup everything like that (cannot go through without correct values)..

I underestimated this part, not that it's big, but you still have to think about that... Client without network, with network + server all got to provide the information to connect to the database.. That's a lot of scenarios right there... Some GUI handling involved in it...

Thanks,
Alex
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be honest with you both features are nice to have:
- cannot go through without correct values.
- have the connect to DB option in the main GUI after application is started.

The second feature is good in that user doesn't have to restart the application if he wants to connect to a different DB.
The trickie part is to filter which properties should you show to the user depending on what he is running (server, alone or client).
once you get the trickie part fixed you do have both options.
 
Everybody! Do the Funky Monkey! Like this tiny ad!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!