JTable won’t show column headers

Put your JTable inside a JScrollPane. Try this:

add(new JScrollPane(scrTbl));

Leave a Comment