Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComboBox Border: No Arc if JComboBox.isTableCellEditor is set #957

Open
GrobiDev opened this issue Jan 10, 2025 · 0 comments
Open

ComboBox Border: No Arc if JComboBox.isTableCellEditor is set #957

GrobiDev opened this issue Jan 10, 2025 · 0 comments

Comments

@GrobiDev
Copy link

A few of the FlatLaf Borders checks whether a ComboBox has the ClientProperty "JComboBox.isTableCellEditor" set. (see FlatUtils)

If this property is set, the rounding of the ComBox-Border is removed, because it is assumed that the control is inside a table.

However, there are also cases where a normal ComboBox (outside a table) sets this ClientProperty.
This is done to not get events during keyboard operations within the pop-up. See JFileChooser

As a result, such ComboBoxes may look different from others.

Is this the intention or should the method "FlatUiUtils.isCellEditor" check in another way whether the ComboBox is inside a table?

Example from the FlatLaf Demo:
image001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant