This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Command Line Parameters or GUI Start up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Command Line Parameters or GUI Start up" Watch "Command Line Parameters or GUI Start up" New topic

Command Line Parameters or GUI Start up

Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
I am wondering whether instead of getting the user to enter in command parameters to specify the start up I could get them to select the setting from a small GUI Frame.
My thoughts currently on this are that the GUI approach may be better because you could hard code some default settings but also allow the user to enter new different parameters. It is also easy to edit / validate if the user makes a mistake.
(The GUI would basically consist of all command line parameters; Local / Remote etc.)
But I am also thinking that because this isn't required I may loose marks for going over the top.
All thoughts welcome.

<a href="" target="_blank" rel="nofollow"></a> - SCBCD Exam simulator<br /><a href="" target="_blank" rel="nofollow"></a> - SCEA Exam simulator
Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
I know its not the most important part to the certification but I'm interested in how other people tackle this.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1844
I did create something in the menu like Preferences where one selected the various options like the port, server name, local/remote check box etc.
Jarrod Littlejohn

Joined: Oct 03, 2001
Posts: 12
Ian, just so you know you're not alone out here. I'm working on this exact thing at the moment. I decided my gui will begin with loading up a JFrame (with no real functionality except a JPanel with instructions on general use). From there a user will have to set the connection through a pull down menu item or a button. These items will trigger events that will create a JDialog box for entering in such information as port number, dns, data file name and local vs remote.
After the above info is extracted from the JDialog Box I will create my connection either remotely or locally.
Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
Thank you Rahul and Jarrod.
I have decided to go with a GUI start up. Basically I will load my Client JFrame etc and then get the user to connect from there. (Probably a button / menu option). Doing it this way would support future enhancements such as been able to swap mode on the fly (local / remote).
Thanks again.
I agree. Here's the link:
subject: Command Line Parameters or GUI Start up
Similar Threads
FBN Design
threads for GUI and command-line
about the stop rmi
db location
NX:Some Questions(URLyBird1.3.2)