This question already has an answer here:
- re-size JTable when useing Default table model 2 answers
I have to get smaller a JTable inside a JScrollPanel. I've found this topic which in the first answer is shown how to do that -but- if I overload the table in order to exceed the panel height it never shows the side scroll bar. Also the same problem is mentioned in the topic. Are clear cons of using preferred size but I still haven't figured out what I should do for re-size my Table.
Please, could someone give me a clear explanation?
Try Setting setPreferredSize() for the Scroll Pane and add Jtable to the Scroll Pane. Just give a try.