view headers in JTable?
Posted
by Venkats
on Stack Overflow
See other posts from Stack Overflow
or by Venkats
Published on 2010-03-09T06:27:13Z
Indexed on
2010/03/09
6:36 UTC
Read the original article
Hit count: 524
I can't view header in JTable while adding it into a JFrame..
String[] col={"Name","ID","Marks"};
Object[][] data={{"venkat",201,450},{"Ramesh",102,450},{"Rahul",2,430}, {"Thiman",4,434}};
table=new JTable(data,col);
The above code doesn't set header in JFrame. How to add view header in JTable while adding it into JFrame.....?
© Stack Overflow or respective owner