File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Line Parameters or GUI Start up

 
Ian B Anderson
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic