aspose file tools*
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
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
Author

Command Line Parameters or GUI Start up

Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
Hello,
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.
Thanks
Ian
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.
Thanks
Ian
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1851
Hi,
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
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Command Line Parameters or GUI Start up