Okay, so I've got this JPanel with a JComboBox and two JScrollPanes in it, both of which have JTables as the viewports. They're arranged using a SpringLayout which specifies a distance of zero between all edges, including that of the JPanel.
Problem is that the JScrollPanes don't seem to be resizing to accommodate the size of the JPanel, which is the left component of a JSplitPane. So I've got, from the bottom up, a JScrollPane at what seems to be the full default height and the bottom of the next JScrollPane. The rest, including the JComboBox, is pushed above the top of the JSplitPane's left viewport.
Any suggestions (aside from "Don't use Swing")? This is driving me nuts...
Thanks in advance. |