automatically calculating column width in JTable
-
22-08-2019 - |
Question
What's the preferred way of this (based on header & contents width I believe)?
Solution
The Java Developer Almanac contains some good sample code for packing tables based on column width, this may be a good place to start.
OTHER TIPS
Header and content widths, which include both characters and fonts. You'll need a wider column for a 14 point sans serif font than an 8 point.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow