JTable column headers missing..kindly help...

Hello there!

:-))

I have written a program that ultimately deals with database connectivity, but my problem is got more to do with JTable. that's why i decided to post my doubt here.

my program displays a JTable by reading fields form a database.

But you see, the column headers are missing!!

I have used the concept of DefaultTableModel, i first searched google and came upon a website: www.exampledepot.com and studied the sample codes on how insert fields into a JTable using the above....

i swear to god i have done the exact same things..

Could you please help me out?

Thankyou very much and have a great day!

:-)

[683 byte] By [KayDeEa] at [2007-11-26 21:46:41]
# 1
Column headers will magically show up if you toss that JTable in a JScrollPane
dmbdmba at 2007-7-10 3:36:25 > top of Java-index,Java Essentials,New To Java...
# 2
done that alreadyMessage was edited by: KayDeE
KayDeEa at 2007-7-10 3:36:25 > top of Java-index,Java Essentials,New To Java...
# 3
Post code.
DrLaszloJamfa at 2007-7-10 3:36:25 > top of Java-index,Java Essentials,New To Java...
# 4
> done that alreadyThen your problem is solved?Or does that mean that you had already done it and no headings showed up? In that case there's something wrong with your code.And Swing questions should be posted in the Swing forum.
DrClapa at 2007-7-10 3:36:25 > top of Java-index,Java Essentials,New To Java...