You have to modify the List to which the JList is bound. And this List must be an Observable list for the change to be registered. The point of binding is that you don't manipulate components' models anymore, but their underlaying data types instead.
Thanks for the reply! Its been quite some time I had asked this question, and have already worked around that problem. But for others facing the same issue, this answer makes sense to me!
I haven't tried though, but should work this way! Thanks! – Abhishek Aug 26 '10 at 7:47.
I have this JList (say MyList) in a JFrame. Im using Netbeans6 GUI builder and I've set a binding for this list. When run, the binding works fine, and MyList is populated correctly.
Now, what im looking for is a way to add more data to this list from another text box on a button Click. W/o binding I would extract the ListModel for the JList using "getModel()" function and add element to it using "addElement()". However, when im using Binding.
So my question is , how do I add more elements to MyList which is already bound to some other dataSource? Anyone has any clues?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.