int row = jTable1.getSelectedRow();
String name = jTable1.getValueAt(row, 0).toString();
窗体设置
int width = Toolkit.getDefaultToolkit().getScreenSize().width;
int height = Toolkit.getDefaultToolkit().getScreenSize().height;
this.setLocation(width / 2 - 400, height / 2 - 350);
this.setResizable(false);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);//销毁窗体事件