File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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: 1849
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.
wood burning stoves
subject: Command Line Parameters or GUI Start up
Similar Threads
about the stop rmi
NX:Some Questions(URLyBird1.3.2)
threads for GUI and command-line
FBN Design
db location