Redian新闻
>
Anybody can recommend a framework article for building swin
avatar
Anybody can recommend a framework article for building swin# Java - 爪哇娇娃
g*g
1
I've maintenaced these java games for a while, it finally went to stable.
But the framework itself is a mess. And I have to scatter code around
even for introducing a simple button.
I need an aproach which uses MVC and clearly separate logic and view for
building complicate swing desktop java application.
Thanks.
avatar
m*t
2

Spring has a Rich Client subproject. It's not released though.

【在 g*****g 的大作中提到】
: I've maintenaced these java games for a while, it finally went to stable.
: But the framework itself is a mess. And I have to scatter code around
: even for introducing a simple button.
: I need an aproach which uses MVC and clearly separate logic and view for
: building complicate swing desktop java application.
: Thanks.

avatar
c*t
3
For Swing based GUI design, use either CookSwing (written by me :P),
SwiXML, JellySwing, etc are all good. Basically design GUI in XML
and your Java code only deals with ActionListeners and such.
If you need something fancy like docking, need to look around. For
instance jgui. All the XUL above can be extended.

【在 g*****g 的大作中提到】
: I've maintenaced these java games for a while, it finally went to stable.
: But the framework itself is a mess. And I have to scatter code around
: even for introducing a simple button.
: I need an aproach which uses MVC and clearly separate logic and view for
: building complicate swing desktop java application.
: Thanks.

avatar
b*l
4
i would suggest you read some design patterns books

【在 g*****g 的大作中提到】
: I've maintenaced these java games for a while, it finally went to stable.
: But the framework itself is a mess. And I have to scatter code around
: even for introducing a simple button.
: I need an aproach which uses MVC and clearly separate logic and view for
: building complicate swing desktop java application.
: Thanks.

avatar
m*t
5

LOL, bug, you got that? some advice, ain't it? 8-)

【在 b********l 的大作中提到】
: i would suggest you read some design patterns books
avatar
g*g
6
Really good advice, if only I knew where the pattern is.
http://www.javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc_p.html
Here is one pretty good.
MVC does not handle the complexities of data management, event management, and
application flows. Pretty much summerize my problem.

【在 m******t 的大作中提到】
:
: LOL, bug, you got that? some advice, ain't it? 8-)

avatar
g*g
7
Good stuff, but I don't deal with many swing widgets.
It's for game, and other than some buttons, most are animations.
Layout alone is simple, and the natural choice is null layout since
the graphics guys will give me coordinates with images.
We do make different resolution games and different layout for the
same logic. So externalize layout in XML is one thing I want to do,
but more than likely pass images url and coordinates are enough for me.
The difficulty is still the model and view synchro

【在 c*****t 的大作中提到】
: For Swing based GUI design, use either CookSwing (written by me :P),
: SwiXML, JellySwing, etc are all good. Basically design GUI in XML
: and your Java code only deals with ActionListeners and such.
: If you need something fancy like docking, need to look around. For
: instance jgui. All the XUL above can be extended.

avatar
f*h
8
read java design pattern, especially the GUI part.

and

【在 g*****g 的大作中提到】
: Really good advice, if only I knew where the pattern is.
: http://www.javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc_p.html
: Here is one pretty good.
: MVC does not handle the complexities of data management, event management, and
: application flows. Pretty much summerize my problem.

avatar
t*5
9
the irony of Swing being the MVC poster child:)
as a casual swing programer, I'm horrifed by
how messy and nasty it can turn into. much much
worse than web programming.
there has to be a better way.

,

【在 g*****g 的大作中提到】
: Good stuff, but I don't deal with many swing widgets.
: It's for game, and other than some buttons, most are animations.
: Layout alone is simple, and the natural choice is null layout since
: the graphics guys will give me coordinates with images.
: We do make different resolution games and different layout for the
: same logic. So externalize layout in XML is one thing I want to do,
: but more than likely pass images url and coordinates are enough for me.
: The difficulty is still the model and view synchro

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。