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

您没有登录

» Java开发网 » Java GUI 设计  

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

亢龙有诲

CJSDN高级会员


发贴: 460
积分: 82
于 2003-10-17 10:55 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
学了一个多月的Swing, 很迷茫:)

希望能跟大家讨论一下,如何设计GUI(标题是不是太大了?)
1.依靠GUI Desinger
(谈谈都用那种GUI Desinger,我不大喜欢:()
2.用xml,(没用过,希望有经验的兄弟谈谈)
3.裸写(偶喜欢)
4.....



作者 Re:如何设计GUI [Re:emarket]
yamakasy



CJSDN高级会员


发贴: 527
积分: 63
于 2003-10-17 11:57 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
http://www.javapractices.com/index.cjp

You can find some userful articles about Swing here,These articles use some common principle about GUI designing~



old Russian saying: If you are so smart, why are you so poor?


Sun Certified Java Programer
yamakasy.blogone.net
作者 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?
作者 Re:如何设计GUI [Re:emarket]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-10-21 23:00 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
or both, Tounge.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:如何设计GUI [Re:emarket]
helloworld



发贴: 0
积分: 0
于 2003-10-22 00:38 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
emarket wrote:
3.裸写(偶喜欢)



Big SmileBig SmileBig Smile




作者 Re:如何设计GUI [Re:emarket]
jeez



发贴: 0
积分: 0
于 2003-11-01 22:38 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
我个人认为你说的是GUI实现,我以为GUI Design是根据需求如何涉及界面的组成框架,layout等等。




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-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923