Skip to main content

Two Lists with the same SelectionModel

No replies
udo_weigelt
Offline
Joined: 2005-01-22
Points: 0

Hi,hi,

could the following be realized?

JListBinding1.setSelectionModelName("mySel")
JListBinding2.setSelectionModelName("mySel")

If the in JList1 an item was selected then this item is also selected in JList2 and if JList2 was selected then....

JTableBinding.getTableSelectionModel().getName() is always
"selected". JTableBinding.setSelectionModelName has protected access- Why?

..and a level again:

JListBinding1.setSelectionModelName("mySel")
JTableBinding1.setSelectionModelName("mySel")

Thanks in advance
Udo