increasing height of jtable dynamically upon insertion of rows


February 2019


8 time


i am having problem on adjusting height of jtable whenever i insert rows. i have tried using setsize() and setPreferredScrollableViewportsize() for both table and scrollpane of the table. could it be the problem in layout manager? i also tried increasing the size of jpanel too upon inserting each row. BTW the table lies in panel and that panel lies in a jDialog. I am using free design in netbeans for UI building. Any help would be very much appreciated ! Thanks in advance !

0 answers