pete stein wrote:It would seem to me that the JDesktopPane doesn't set its preferredSize based on its contents.
...
Well yeah, I would say so too
Anyways, I just tried a setPreferredSize on the JDesktopPane and it worked, so I guess I can live with that.
Interestingly enough, I initially tried to add the JInternalFrame directly to the JFrame, and the JFrame sized properly, but I could not for the life of me prevent the JInternalFrame from being resized along with the JFrame, even when the constructor of the internal frame specified no resizing. Using JDesktopPane solved that problem, but introduced the one that started out this
thread. ANyways, all's well that ends well.
Thanks again Pete. regards.