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.

[577 byte] By [KyleHaddena] at [2007-11-26 12:21:03]
# 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);

camickra at 2007-7-7 15:12:03 > top of Java-index,Archived Forums,Socket Programming...
# 2
Hi,My program is around 1MB and has multiple classes so would it be possible for me to email my program to you for testing? My email is kylehadden@shaw.caThanks
KyleHaddena at 2007-7-7 15:12:03 > top of Java-index,Archived Forums,Socket Programming...
# 3
You missed the point about creating a SSCCE.I don't want your entire application. I want you to do some basic debuggin to isolate the problem and post the demo code.
camickra at 2007-7-7 15:12:03 > top of Java-index,Archived Forums,Socket Programming...