JScrollPane autosizing
Hi,
I have a rather large GUI. There is a jtabed pane. The right pane contains a scrollpane. This scroll pane contains and upper and lower jpanel. each jpanel contains a jtable and another jpanel. When either of the jtables contains data and I click outside of the right tabbedpane, for example on my menubar, the lowerpanel sizes much greater than the viewable area, filled with white space, and I have to scroll down to the bottom to see the lower jpanel. I am using border layout for the upper and lower jpanel.s
Thanks
Also, my window is maximized.
# 1
> If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the code retains its original formatting.
Note: a simple table for demo purposes can be created in a single line using:
JTable table = new JTable(5, 10);