table.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1) {//BUTTON1单击鼠标
int row=table.getSelectedRow();
String sampleNo=table.getValueAt(row,2).toString(); //试样编号
String status=table.getValueAt(row,15).toString(); //状态编号
concreteHNTVO.setSampleNo(sampleNo);
concreteHNTVO.setStatus(status);
concreteHNTVO.setTrailType(String.valueOf(comboBox_syKinds.getSelectedItem()));
logger.info("选中的试样编号:"+sampleNo+",状态:"+status);
//右侧信息加载
if(info_panel!=null){
info_panel.removeAll();
p1_right.remove(info_panel);
}
info_panel.add(new ContinueTableJPanel(concreteHNTVO).getInfo());
info_panel.repaint();
p1_right.add(info_panel);
p1_right.repaint();
}
}
});