You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When displaying a check box or radio button, with right alignment, the right end of the component is being cut.
This is not caused by the width of the component, in the example shown, all components created have the same width, both those that are aligned to the left and those that are aligned to the right.
It happens only using FlatLaf (default properties).
The same code running with Windows LaF or Metal LaF does not present the described behavior.
In the image above we can see that the right edge of the check box and radio button are not showing, as well as the text of the components created with the text on the right is not displayed completely.
Information that may help with this issue:
The border used by default in the check box/radio button is FlatMarginBorder.
When using an alternative border, such as FlatTextBorder, the problem stopped occurring.
When displaying a check box or radio button, with right alignment, the right end of the component is being cut.
This is not caused by the width of the component, in the example shown, all components created have the same width, both those that are aligned to the left and those that are aligned to the right.
It happens only using FlatLaf (default properties).
The same code running with Windows LaF or Metal LaF does not present the described behavior.
In the image above we can see that the right edge of the check box and radio button are not showing, as well as the text of the components created with the text on the right is not displayed completely.
Code
The text was updated successfully, but these errors were encountered: