最近要解决一个bug,就是TabPanel中,删除一个TabItem,然后再添加一个TabItem,保持顺序不变。
用TabPanel的insert方法可以实现,insert( index, component )
index 可以数一下位置,从0开始
也可以用 TabPanel.items.indexOf(Object)
items是一个collection indexOf可以返回它里面某个Object的位置
原文:http://www.cnblogs.com/aliceQin/p/4910219.html