Anyone have any idea why a header row wouldnt show on a jtable? I have the
columnnames set up in my table model. Just wondering if anyone has ever had
a similar exasperating experience. -Ike
Amit Brabbing - 02 Dec 2003 21:32 GMT
try to add your jtable to a jscrollpane.
add the scroll pane to the panel.
> Anyone have any idea why a header row wouldnt show on a jtable? I have the
> columnnames set up in my table model. Just wondering if anyone has ever had
> a similar exasperating experience. -Ike
brougham5@yahoo.com - 03 Dec 2003 02:04 GMT
>Anyone have any idea why a header row wouldnt show on a jtable? I have the
>columnnames set up in my table model. Just wondering if anyone has ever had
>a similar exasperating experience. -Ike
Check the API docs for JTable:
"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."