I have a JTable which is created using a TableModel JTable t = new JTable(tableModel) I want to add a title to it. I was hoping for something like t.setTi
I don't think you have much options here. JTable has no functionality to add a titlebar.
So using JLabel or other components is your only option.
Try putting the JTable in a JTabbedPane.