Print at Dec 18, 2025, 11:45:20 PM

Posted by Puybaret at Feb 22, 2018, 2:19:27 PM
Re: Resizable photo panel?
setMinimumSize was added to Window class in Java 6, but there's still no setMaximumSize method sad

There's no API in UserPreferences class to manage additional preferences, and nothing in the user interface for that. At the moment, this can be done only by subclassing this class in a derived version of Sweet Home 3D.

Managing the size of the panel isn't difficult, just call dialog.setResizable(true). I checked in PhotoPanel class and the photo component at the top will be enlarged accordingly. But the space at the left and right of the components at the bottom may look uselessly large if you don't manage their layout differently. It's probably the reason why I didn't make the dialog resizable.
An other option could be to add some zoom -/+ buttons to view details in the photo component, like in the background image import wizard.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator