java - How to size a JTable in a JScrollPane without setPreferredSize() -


this question has answer here:

i have smaller jtable inside jscrollpanel. i've found this topic in first answer shown how -but- if overload table in order exceed panel height never shows side scroll bar. same problem mentioned in topic. clear cons of using preferred size still haven't figured out should re-size table.

please, give me clear explanation?

thank you,

andrea

try setting setpreferredsize() scroll pane , add jtable scroll pane. give try.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -