日期:2014-05-20 浏览次数:20797 次
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class InformationTable extends JTable { public InformationTable(AlterPanel alterPanel) { super(new ResultTableModel()); this.getTableHeader().setReorderingAllowed(false); this.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent me) { int rowIndex = getSelectedRow(); JTextField[] fieldList = { alterPanel.getIdField(), alterPanel.getNameField(), alterPanel.getSexField(), alterPanel.getBirthField(), alterPanel.getClassField(), alterPanel.getDepartmentField() }; } }); } }
JTextField[] fieldList = { alterPanel.getIdField(), alterPanel.getNameField(), alterPanel.getSexField(), alterPanel.getBirthField(), alterPanel.getClassField(), alterPanel.getDepartmentField() };