posted 22 years ago
Hi
this what you want is not so easy. Two days ago we had the same discussion. There I told the guy, that he should better take the null layout. Then it is possible to resize components.
In case of GridBagLayout, all the available space is provided by the LayoutManager. Only the manager can set the size. So the thing you have to do, is to change the size of the Frame. Maybe this is not that, what you want, but in my opinion, there is no better solution.
Here is a class, which implements the behavior I described.
Hope this helps
Rene