Good morning to all. I'm having BoxLayout trouble. In this code the header demands
extra space on the right and the table body demands extra space on the left. But I need
the box to be as narrow as possible. (I'm adding a border to see the box size.) I've been
avoiding using a JScrollPane. Any ideas?
BEE MBA PMP SCJP-6
posted 6 years ago
Careful attention to component alignment and sizes eventually solved the problem. Adding
borders to each container, and printing MIN, PREFERRED, MAX sizes to the console helped
to see that was going on. The Box class is very handy and seems easy to work with. I can
elaborate further on where I ended up, if anyone is interested. Also, I wonder what others
think about the Group layout manager.