I make a form, to display & edit user information, say "[b]userForm[/b]". The form contains an underlying user object model "[b]user[/b]", and binds, for example, [b]JTextField userName[/b] to the underlying field of the user model, [b]user.name[/b].
However, when a new user is selected, and I call "[b]userForm.setUser(user2);[/b]", I would like obviously to bind the JTextField userName to the new user model member of [b]userForm[/b], but of course the bindings stay attached to the original [b]user [/b]model object.
Is there any straightforward way to change the bindings generated from Netbeans? I could do it all manually by adding and removing listeners in the [b]setUser[/b] method, but I'm hoping for something more elegant and straightforward. It must be a common use case....