Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(rs.next())
- {
- String n=rs.getString(1);
- String a=rs.getString(2);
- String s=""+rs.getString(3);
- temp=new Vector();
- temp.addElement(n);
- temp.addElement(a);
- temp.addElement(s);
- data.addElement(temp);
- }
- table=new JTable(data,heading);
- setLayout(new FlowLayout());
- jsp=new JScrollPane(table,v,h);
- add(jsp);
- }catch(Exception e){System.out.println(e);}
- }
- public static void main(String args[])
- {
- Display d=new Display();
- }
- }
Add Comment
Please, Sign In to add comment