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
posted
0
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
posted
0
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