Question

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 resize happens?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top