How to synchronize GUI and logic

Hello,

how is it possible or which is the best way to synchronize a gui with the business logic?

I mean, I have a class to store data and manipulate it. And I have an other class which contains the GUI with checkboxes, editboxes and so on. In case of all elements I check user changes and set the corresponding value in the business logic. So I have a lot of "on_change" event handlers. Each swing component has one.

I think it is not the right sollution. Any suggestion?

Thanks!

[511 byte] By [maldiva] at [2007-9-30 0:30:23]
# 1
My approach is to use models or documents for each component and then using DocumentListeners, SelectionListeners etc.
PhHeina at 2007-7-16 5:01:17 > top of Java-index,Archived Forums,Swing...
# 2
Do you know any good tutorial to this sollution?
maldiva at 2007-7-16 5:01:17 > top of Java-index,Archived Forums,Swing...
# 3
Nope, sorry.
PhHeina at 2007-7-16 5:01:17 > top of Java-index,Archived Forums,Swing...