Problem in displaying Column Heading using JTable

I am using JTable component in my applet. I am trying to retrieve records from a database and want to display the same in the table using JTable component. In that procees my data is shown in the table but I am not able to display the column heading.Please suggest.
[279 byte] By [FrndzVishia] at [2007-10-3 8:24:20]
# 1
post a sample code. Check if you have placed the table in a scrollpane
watfora at 2007-7-15 3:30:29 > top of Java-index,Desktop,Core GUI APIs...
# 2
you could user JScrollPane to show the column's head.if you don't want to use JScrollPane ,you should use the getTableHeader() method and add the header into the pane
zerotemp0709a at 2007-7-15 3:30:29 > top of Java-index,Desktop,Core GUI APIs...