You didn't provide a complete code, but it seems that the problem is the table header is not visible.
In order to show the JTable's header, you should put the
JTable in a
JScrollPane, and do not add your
JTable instance directly to the underlying container:
JScrollPane sc = new JScrollPane(apartma); yourPanel.add(sc);
Also you may want to pass a
Vector<String> as the titles for all of the
JTable columns header, to the
Hope this would be helpful.