To what component is your table added? If it's not inside a scrollpane then
"Note that if you wish to use a JTable in a standalone view (outside of a JScrollPane) and want the header displayed, you can get it using getTableHeader() and display it separately. " - from the api
If it's in a scrollpane, then please can you post the code where you are creating the table and adding it to the scrollpane.
posted 15 years ago
Thank you very much. I haven't place the table in a ScrollPane in deed. And in my table model,I haven't overried getColumnName(int column).Instead of that I add a new methord getColumName(int column) by mistake.So when I place my table in a scrollPane,the column name dispaly like that,A, B,... Now everything is Ok. I am from China,and not good at english. I hope I have expressed me clearly. Thank you!
To be or not to be. It's a question.
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop