From: Hole on
On Jun 22, 9:28 pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote:
> In article <alpine.DEB.1.10.1006221957500.16...(a)urchin.earth.li>,
>  Tom Anderson <t...(a)urchin.earth.li> wrote:
>
>
>
>
>
> > On Tue, 22 Jun 2010, Daniel Pitts wrote:
>
> > > The trouble with this is that the JTable Model is event driven,
> > > where user-beans need a lot of work to add event notification for
> > > property modification.  I've tried to write such a library several
> > > times, and always run into the same issues.  Also, custom renders
> > > and editors for bean properties aren't easy to handle in certain
> > > cases.
>
> > > It *is* possible to create an object which implements both
> > > java.util.List and javax.swing.ListModel, the trouble comes from
> > > mutable objects.  IF the object mutates, technically an event needs
> > > to be fired. In order to handled that, the beans have to register
> > > listeners.  A lot of boiler-plate code.  Yarg.
>
> > Or else, the binding framework could play at being JPA and take care
> > of dirty tracking. It could play that dead straight and bind to
> > JPA-annotated beans, and use existing code weaving techniques to
> > detect changes, or it could maintain a copy of the state, and diff it
> > with the current state to generate events on demand. It would be
> > memory- and CPU-heavy, but hey, next to Swing, who's going to notice?
>
> I see NetBeans has a help topic entitled "Binding Data to a Swing
> Component". It permits binding to either JTable and JList.
>
Hi John,
AFAIK, it permits quite easily a binding between Swing components'
properties while I look for a solution to bind POJO properties to a
Swing component property.
From: Hole on
On Jun 22, 4:10 pm, markspace <nos...(a)nowhere.com> wrote:
> Hole wrote:
> > I was looking for a solution to bind Swing widgets and beans (or list
> > of beans).
> > Surprisingly, I've found some projects on dev.java.net that are
> > completely overlapped and it's not clear which project is active or
> > not (as for JSRs).
>
> Can you share what you found, overlapped or otherwise?  I'd be
> interested in seeing what has been worked on so far.  It might also help
> us understand what sort of binding you are looking for.  I think most of
> us have a general idea but something a little more specific might be
> helpful.

Hi,

I've found this post. Quite interesting. It could help to understand
the issue I was talking about.
http://djnweb2.sjc.collab.net/blog/2009/03/25/lets-fork-beansbinding