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

GUI Design

Yuqing Zhu
Greenhorn

Joined: Jan 17, 2002
Posts: 8
Hi, All,
Finally I'm working in my GUI now, but have some questions need your help.
1. Do we need to consider i18n issues, i.e. put all menu text and dialog message into a properties file. Or we can just hard code every thing in the code?
2. If I use Action for my menu item action, will that be considered as a MVC?
3. Do we need to put the menu structure in an external file and build the menu from that file programmatically or we can just use the simplest way, i.e. add each menu item line by line code?
every respond will be appriciated.
Thank
Yuqing Zhu
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560

1. Do we need to consider i18n issues, i.e. put all menu text and dialog message into a properties file. Or we can just hard code every thing in the code?

I would hard code the menu text and dialog message
in the code

2. If I use Action for my menu item action, will that be considered as a MVC?

Action and adding a listener to the gui component
follows Oberver/Observable pattern. To implement the MVC pattern, you can create
controllers for the JFrame and the JPanel to handle events and populate the gui components with data.

3. Do we need to put the menu structure in an external file and build the menu from that file programmatically or we can just use the simplest way, i.e. add each menu item line by line code?

hard code the menu structure in the code. You have to distribute the external file to the user anyway, and it is as good as distributing the *.jar file.
Adam Roberts
Ranch Hand

Joined: Mar 18, 2002
Posts: 71
1. Do we need to consider i18n issues, i.e. put all menu text and dialog message into a properties file. Or we can just hard code every thing in the code?

Only thing I didn't hard code was the names of destinations/origins.
Then again I missed a few points on GUI


Adam Roberts - SCJP2, SCJD<br />insert witty something here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GUI Design