两种查找下标的方式
LovoButton findButton=new LovoButton("查找", 330, 330, this);
findButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
List<Student>findList=new ArrayList<Student>();
for (Student s : list) {
//查找符合条件
/*if(s.getName().indexOf(findTxt.getText())!=-1){
findList.add(s);
}*/
if(s.getName().contains(findTxt.getText())){
findList.add(s);
}
}
table.updateLovoTable(findList);
}
});