daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     while(rs.next())
  2.     {
  3.     String n=rs.getString(1);
  4.     String a=rs.getString(2);
  5.     String s=""+rs.getString(3);
  6.     temp=new Vector();
  7.     temp.addElement(n);
  8.     temp.addElement(a);
  9.     temp.addElement(s);
  10.     data.addElement(temp);
  11.     }
  12.     table=new JTable(data,heading);
  13.     setLayout(new FlowLayout());
  14.     jsp=new JScrollPane(table,v,h);
  15.     add(jsp);
  16.     }catch(Exception e){System.out.println(e);}
  17.     }
  18.     public static void main(String args[])
  19.     {
  20.     Display d=new Display();
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top