I place my JTable in a scroll region, the scroll region is added to a panel. When I display this panel in an
Applet (or a JDialog), depending on the size of the container, the last line of the table can be clipped, only partially displayed. I'd like to ensure that whenever the table is displayed, regardless as to the size of the outer container.
Now I have tried adding a container (and scroll region, and jtable) component listener to catch the ComponentResized notification. In there I call table.getScrollableBlockIncrement then call table.setPreferredScrollableViewportSize, but the size never seems to come out right. I am told that this is possible via MFC (but I am not an MFC programmer nor do I ever hope to be. :-) ). Anyone have any thoughts?