Print at Dec 17, 2025, 8:41:07 AM

Posted by Puybaret at Oct 16, 2023, 4:43:04 PM
Re: Bug found in HomefurniturePanel.java
Adding the line
this.transformationsLabel.setPreferredSize(this.transformationsLabel.getPreferredSize());
should have no effect, since without this line the layout will try to set the label to its preferred size.
The problem looks like the preferred size is actually different when the container is laid out and when it's displayed.
Maybe forcing the preferred size to a larger size could fix the problem (a few pixels along width or height) without breaking container layout in Java implementations where it works now. Can you try?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator