views:

200

answers:

2

Can anybody recommend a (preferably open-source) framework for decoupling GUI from model in Java desktop applications?

+2  A: 

Java Swing actually makes good use of MVC for just this purpose.

Justin Ethier
"Model" in MV* for me means primarily domain model, which ListModel, TableModel and friends certainly aren't; they correspond more closely to a Presenter or a ViewModel.
Alexey Romanov
How is a generic framework going to supply a domain specific model component?
Stephen C
It isn't, of course. I am merely suggesting they've got the name a bit wrong :)
Alexey Romanov
+1  A: 

From your reaction to the suggestion that Swing is an MVC framework for desktop apps, I think that you really need some kind of generator framework that will generate the 'model' and 'view' code from higher level specifications. Examples I'm (more or less) familiar with are Eclipse EMF, GEF and related technologies.

Stephen C