Forums Register Login

can you resize a JTable from UI?

+Pie Number of slices to send: Send
I have a JFrame containing a JTable. When the program is running, I can resize the JFrame by clicking an end corner and dragging. I want to be able to do that with my JTable too... is that possible?
Thanks!!
+Pie Number of slices to send: Send
Place a panel in the center of the Frame (Using the default BorderLayout).
Set the layout of the panel to Grid Layout.
Place your scrollbar(if any) there.
The table then goes on the scrollbar (or directly on the panel).
The grid seems to re-size the nicest.
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 964 times.
Similar Threads
Resizing Jtable column
jtable
JTable size
JTable
JTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:26:24.