I am putting a JTable in a JScrollPane, but the table only contain several rows, which makes the rest of the space in the pane just empty.
Is there any way I can do to make the JTable fill the entire pane? say, put empty rows so that the pane will be filled.
Thanks
table.setFillsViewportHeight( true );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With