Hello,
I haven't done java for a while, but trying to refresh memories... I am
trying to move selected multiple values in 2 JLists that contains
different items into the 3rd JList.
For instance, if I select 'apple' from 1st JList, 'kiwi' and 'banana'
from 2nd JList, then move them into 3rd JList and it contains apple,
kiwi and banana as its contents.
Now, I can move either 'apple' or 'kiwi, banana' into the 3rd JList.
But what I want is having all 3 of them into the 3rd JList...
Can someone please give me any idea how to do this...?
Thank you in advance..
Bonna Choi myideaoforder@yahoo.com
zero - 27 Jan 2006 19:19 GMT
bonna.choi@gmail.com wrote in news:1138325290.583397.105060
@z14g2000cwz.googlegroups.com:
> Hello,
>
[quoted text clipped - 13 lines]
> Thank you in advance..
> Bonna Choi myideaoforder@yahoo.com
easiest would be to iterate over each ListModel (JList:getModel(),
ListModel:getSize() and ListModel:getElementAt()) and add them to the model
of the third JList (DefaultListModel:add())