Wow, that's really weird. I would not expect it to work that way. I don't have a great explanation for that. But your solution seems to work fine, so I guess it's not that big a deal.
By the way,...
Type: Posts; User: KevinWorkman
Wow, that's really weird. I would not expect it to work that way. I don't have a great explanation for that. But your solution seems to work fine, so I guess it's not that big a deal.
By the way,...
Weird. Doesn't that resize the frame? Is that what you want? Are you using BorderLayout? I would really expect the component in the center to take any extra space.
Bingo. Sounds about right. Did you get it working now?
Like I said, I can't really help without seeing an SSCCE. Don't forget the highlight tags.
That's not what I would expect with BorderLayout. Like I said, if you want help, you'll have to provide an SSCCE that demonstrates the problem. Just using different colored JPanels should be enough...
Hmm, with the right layout (BorderLayout maybe) and setting the visibility, I would expect that to be pretty easy. Or maybe you're looking for a JSplitPane?
I'm not sure what you're trying to accomplish, or what your problem is. Maybe you should provide an SSCCE that demonstrates what you're doing.
Why don't you just figure out the size you want your JFrame to be and then set it to that? The pack() method isn't going to take invisible components into account.
Or you could set the visibility...