Reputation: 959
I have a JScrollPane that contains a JPanel. This JPanel has 2 tables: for some reasons, i prefeer to have just one JScrollPanes for both the tables.
The problem is that i should ALWAYS show the two table's headers, and to do this i have to set a proper custom column header for the JScrollPanel. How can this be done? I've tried setColumnHeader but can't find a way to let this thing done. The final JScrollPanel's custom colum header must contain both the table headers, one one the left and the other on the right side (visually making a unique header)
Thank you
Upvotes: 1
Views: 117
Reputation: 1640
Maybe setColumnHeaderView() is what you are looking for?
Upvotes: 1