Swing - Swing client and server difference

Hi Friends

I am new to swing

I was earlier working on JSF framework.

As their is clear separation between what goes on cilent and what comes from client and then to process the requestt parameters at server side.

This structure typically gives very clear idea and separation of code.

But ,i am not able to make this difference in swing.

The UI part ,and what separates client (thin) with server and how this can be visualized?

If any one can put me through this difficulty ,that will be a great help.

[573 byte] By [sunnyjaina] at [2007-11-26 23:18:27]
# 1

Very Simply they are quite different beasts... Though Swing does allow separation of this UI logic / business logic. but the onus is very much on the developer to separate this out. Swing is without the App frameworks that the web guys are currently drowning in. Though this has been addressed recently with (see"http://jcp.org/en/jsr/detail?id=296" JSR 296 Swing Application framework).

however its worth noting in swing that most components (I think) have an associated model. This model can then be set to the view componeont. (MODEL VIEW sound familiar!) i.e. JTable has a DefaultTableModel. You can extend the model so you can separate your UI that way. Best bet is to follow the java swing trail. Event handling is another story and different people have different taste, i.e. one central controller for all events, events handled in with the ui code, or a variation thereof. good luck...

null

gupnortha at 2007-7-10 14:20:30 > top of Java-index,Desktop,Core GUI APIs...