On Mon, 13 Mar 2023 21:40:39 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> In testing, it does also affect this case. In the normal use cases in >> testing, this editable Aqua comboBox with a TitledBorder seemed to be the >> only problematic one, but with custom large borders, this seems to also be >> an issue. >> >> I recently discussed with @lawrence-andrew and learned that in the setBorder >> doc for JComponent, UI components are not fully supported with borders. It >> is instead recommended to place the component in a JPanel. I think this is >> one of those cases, but the fix in this PR fixes the found issue for the >> case of an editable Aqua comboBox with a border. >> >> If you could give insights on this Lawrence, that'd be appreciated as well. > > Actually I see the same behavior (ComboBox's selected item overlapped with > popup menu) for non-editable ComboBox with or without your fix(whether it has > a border or not). > We can probably fix it along with this issue. > > > [JDK_8302558.java.txt](https://github.com/openjdk/jdk/files/10962183/JDK_8302558.java.txt) @azvegint In reference to the combobox's button, the email I got back from Apple says "in Aqua, there is no concept of a non editable Combo Box... what you are depicting as a JComboBox is actually a popup/pulldown". However, "NSComboBox, because of its direct affinity to NSTextField, has the square bezel corners" rather than "the softer rounded corners that the button family uses". My understanding from this is, since JComboBox relies on TextField, it uses the native TextField's square corners. ------------- PR: https://git.openjdk.org/jdk/pull/12750