What’s the easiest way to build an applet that has a view with components that are bound to model data and update when the model is updated?
Ideally as little code as possible, preferable none/declarative 🙂
If a component type is needed for explanation, please consider a JLabel whose text is bound to a bean with a String getText() accessor – but if that’s just plain dumb, please give me a better example!
Thanks!
unless your model is very small, data binding is not so easy:
http://www.jgoodies.com/ examples: http://www.java2s.com/Code/Java/Swing-Components/Data-Binding.htmjgoodies
BeansBinding: http://www.artima.com/forums/flat.jsp?forum=276&thread=213997