求审稿结构陶瓷及陶瓷基复合材料# Engineering - 工程
N*m
1 楼
如下代码
def mlist = {
def sList=['a','b','c','d','e','f']
1.upto 10, {sList< sB.scrollPane() {
v = sB.list(model : new StaffListModel(sList),
selectionMode : ListSelectionModel.SINGLE_SELECTION,
selectedIndex : 0, visibleRowCount : 4,
valueChanged: {println v.getSelectedIndex()})
}
}
为啥选中mlist任何一个item的时候打印两遍index?
def mlist = {
def sList=['a','b','c','d','e','f']
1.upto 10, {sList<
v = sB.list(model : new StaffListModel(sList),
selectionMode : ListSelectionModel.SINGLE_SELECTION,
selectedIndex : 0, visibleRowCount : 4,
valueChanged: {println v.getSelectedIndex()})
}
}
为啥选中mlist任何一个item的时候打印两遍index?