Re: Bug found in HomefurniturePanel.java
by Puybaret » Mon Oct 16, 2023 4:43 pm
Adding the line
Code: Select all
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?