JTable column headers missing when using GUI builder

when I add a JTable using the GUI editor in Idea 4.0 I can't seem to get the JTable column headers to show up. When I do the very same thing with a JTable not created by the GUI designer the column headers show up. Does anyone have an idea what the problem is or how I can fix it?

0
Avatar
Permanently deleted user

Have you given the table a model?

Tom

0
Avatar
Permanently deleted user

May be JScrolPane required?

1

请先登录再写评论。