Professional Documents
Culture Documents
Display
Display
Display
try{
BDConnection.init();
com.mysql.jdbc.Connection con = BDConnection.getConnection();
PreparedStatement ps;
ResultSet rs;
ps = con.prepareStatement("Select * from student");
rs = ps.executeQuery();
while(rs.next()){
this.jTable1.addRowSelectionInterval(WIDTH, WIDTH);
}
}catch(SQLException e){
System.out.println(e);
}
}