Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java GUI 设计  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:如何设计GUI [Re:emarket]
Julian13





发贴: 387
积分: 52
于 2003-10-21 12:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
In theory, you should follow the MVC pattern. However, everyone might have different approach in their implementation.

For me in practice:
1. All the GUI (the View) drag-and-draw under SunONE 4.x (don't know why but as recommended by our supervisor; I bet if you do keep the MVC pattern clear in you design, there isn't any problem to work with other GUI editor).
2. All the user event/interaction code (the GUI level Controller) will be manually program under Eclipse. At this point, I used to have a separate GUI controller class developed but sometimes for testing or prototyping I might embedding them into the view as well.
3. All the domain class (the Model) will be manually program or generated under Eclipse.

I feel comfortable with my approach that:
1. If user want to change GUI layout, I can isolate my changes remain in the View.
2. If user interaction to be changes, I can isolate my changes remain in the View and the Controller.

Of course, there would be chances to have all classes got changes impact under the existence of *innovative* business people Tongue

Indeed, when you going further detail from individual GUIs into a serious application. You will finally forming a framework amongs your GUIs. For example, the common validator, interaction event mediator, I18N/L10N messaging/dialog mechanism, etc. So, for a long run, you should either have you own framework or get used to a oepn one.



who am i?

话题树型展开
人气 标题 作者 字数 发贴时间
15226 如何设计GUI emarket 144 2003-10-17 10:55
11225 Re:如何设计GUI Julian13 1425 2003-10-21 12:24
10951 Re:如何设计GUI floater 13 2003-10-21 23:00
10898 Re:如何设计GUI helloworld 63 2003-10-22 00:38
10917 Re:如何设计GUI yamakasy 155 2003-10-17 11:57
11224 Re:如何设计GUI jeez 54 2003-11-01 22:38

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2020 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923