开发者

Java JFrame Resizing

开发者 https://www.devze.com 2023-01-20 10:41 出处:网络
I know I can use componentResized to listen for when the user resizes a window. This isn\'t a very nice solution. If I do this and add a resize() method for the children components, then it waits unti

I know I can use componentResized to listen for when the user resizes a window. This isn't a very nice solution. If I do this and add a resize() method for the children components, then it waits until the user finishes the resizing before it calls the resize() method. Is there a way to resize the child elements as the res开发者_JAVA百科ize happens?


The listener with componentResized() is the nice solution. Using listener in swing isn't a bad solution at all.

You can see the solution you want on oracle.com

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号