Skip to main content

Model / Table

No replies
Anonymous

Let's try to trow a rope again:

http://osteele.com/archives/2004/08/web-mvc

Just like Flash based on Sun MVC, above is how we did SwingX based roomity.com.
A table model and a form model. Both have init(Collection) to get DTO/STO.
JXTable has a
Long getClickedRow(MouseEvent evt, String pkColName);
that gets the cliked pk for master/detail.
push/pull to get data in/out (to bound forms fields/formatedtextfields) and reduce overhead of listeners.

Currently... the newbies will get confused. Swing w/o MVC is hard.

hth,
.V

----------------------------------------------------------------
roomity.com
roomity.com is broadband internet. ~~1127863788318~~
----------------------------------------------------------------
[att1.html]