Java JFrame Resizing
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
精彩评论