aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question about assignment. 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 "Question about assignment." Watch "Question about assignment." New topic
Author

Question about assignment.

ZhengQi Huang
Greenhorn

Joined: Aug 13, 2002
Posts: 9

The user must be able to select the operating mode, although it is acceptable that the program stay in one mode once it has started up.

If i need to build a GUI to let user select operation mode at first.If needed,how can i implement it?


I am a beginner.
dennis hu
Ranch Hand

Joined: Aug 27, 2002
Posts: 40
Hi ZhengQi:
It is a big question!
Do you have any ideas on it??
~dennis hu~
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi ZhengQi,

If i need to build a GUI to let user select operation mode at first.If needed,how can i implement it?

That's up to you, but most, including myself, have opted to select the mode based on the command line.
Hope this helps,
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
ZhengQi Huang
Greenhorn

Joined: Aug 13, 2002
Posts: 9
Thank Michael for your advice!!!
Ramesh kumaar
Ranch Hand

Joined: Mar 19, 2002
Posts: 146
Create a GUI(JPanel) which contains a Label some thing like " Please select ur login mode" followed by a combo box with the option for local or remote. Here if the user selects Remote then append a text field to the same GUI(JPanel) for reciving the remote IP. Finally have a ok button which will deside the the local or remote based on the selection u made earlier will set a flag. Using this flag make a call to a class which implements Factory pattern and return the reference of the appropriate DataInterface class.
regards,
RameshKumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about assignment.