Originally posted by Maximilian Heva:
I guess I'll need a GUI for the server with buttons for start and stop server and a filechooser for the database file (the path of the file) to run against.
I do not see any other way to do it....
The property file will contain path values for client standalone database file as well as server database file.
thanks
You still needn't have a GUI, you can pop up a JDialog and take in the properties this way. Once this is done you can discard the dialog and have a command line server.
To do this you will need a JFrame reference to use as the parent window for the dialog. In my app class I have a window object that is a JFrame instance. In server mode it is my intialised as the serverGUI and in local and network mode it is intialised as the client GUI.
If you don't wish to have a serverGUI this reference can be null in server mode, however even a null JFrame object can still be used as the parent for a JDialog so you can have a server properties GUI and a then a command line server once the properties have been displayed.
Hope this helps,
Mark
Mark