JTable question

Hi,
I would like to make a JTable which the users are not allowed to swap fields, and change width of columns.
How can I do this?
stanleyhuenAsked:
Who is Participating?
 
heyhey_Connect With a Mentor Commented:
did you try

table.getTableHeader().setReorderingAllowed(false);
table.getTableHeader().setResizingAllowed(false);
0
All Courses

From novice to tech pro — start learning today.