dcsimg

How can I limit the size of my window?

John Zukowski

You can register a ComponentListener with the window and have the componentResized() method validate the window size. If the window is outside acceptable limits, you can return things to the desired size.