Re: Bug found in HomefurniturePanel.java
by Walter125 » Sun Oct 15, 2023 6:38 pm
I think it is a bug internal to the java linux implementation.
It seems I have found a workarround, adding the following line before to add the Label to the grid at line 2111:
Code: Select all
this.transformationsLabel.setPreferredSize(this.transformationsLabel.getPreferredSize());
I haven't a good knowledge of the program, but I also wonder if the size of the previewComponent should be scaled by in order to be adapted to the screen resolution, at line 2114 ?
Example of scaling:
Code: Select all
float scale = SwingTools.getResolutionScale();
this.previewComponent.setPreferredSize(new Dimension((int)(400*scale), (int)(400*scale)));
instead of actually:
Code: Select all
this.previewComponent.setPreferredSize(new Dimension(400, 400));