• 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

allow the user to specify the location of the database

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sun request : must allow the user to specify the location of the database.

The program has two kinds of models .

alone model --- I use FileChooser to allow the user specify the location of database .

server model --- should i make a GUI for server to allow the user specify the database on server side?

and do i have a wrong comprehension?
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I present the same UI no matter what way the application is run with different fields enabled/disabled depending on the mode.

It seems to be the common consensus on here that you must provide some kind of GUI to allow the setting of the DB location when starting in server mode.
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i agree with you. i wrote 4 windows, overall:

- a server gui to specify data file and start / stop server
- a filechooser for standalone mode
- a ip-chooser for client mode
- the main gui, of course

hope it helps,
jan
 
David George
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much . It helps a lot .
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jan Groth:
i agree with you. i wrote 4 windows, overall:

- a server gui to specify data file and start / stop server
- a filechooser for standalone mode
- a ip-chooser for client mode
- the main gui, of course

hope it helps,
jan



I was gonna just provide a stop button.
My start server was going to be done programmatically when starting in server mode.
Why provide a start button as well ?

I have also seen metion of being able to provide a Server Port.
Any reason for this cause I wasn't going to ?
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi conor,

in principle, you are right...

but:

providing start / stop facilities makes debugging a little easier, and it's not a big deal in terms of extra code. just an unbind() method more.

if you take setting the server port for example, it is a bit more tricky. first of all, i don't see any benefits, actually i never had anything running on 1099 but rmi, so i really think this does not have to be configurable by any big technical needs. second - it's another set of problems you might have to deal with - what are valid ports, what is if someone configues it to port 80, ... ?

so, to come to my point - i'm trying to find a balance between required minimum and comfort. that's it...

many greetings,
jan

ps: in my assignment, a "unbook / release" functionality wouldn't be required, and andrew mentioned people passing without this functions. wow, that would be too hard-core for me... :-)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic