g*****g 发帖数: 34805 | 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. | m******t 发帖数: 2416 | 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.
| c*****t 发帖数: 1879 | 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.
| b********l 发帖数: 27 | 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.
| m******t 发帖数: 2416 | 5
LOL, bug, you got that? some advice, ain't it? 8-)
【在 b********l 的大作中提到】 : i would suggest you read some design patterns books
| g*****g 发帖数: 34805 | 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-)
| g*****g 发帖数: 34805 | 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.
| f********h 发帖数: 149 | 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.
| t****5 发帖数: 20 | 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
|
|