On Thu, 16 Mar 2023 22:48:24 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:
>> 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. I guess now in JDK with your testcase, popup button are shown opposite to what native components shows ie editable combobox shows non-editable pop-up button and non-editable combobox shows editable pull-down button ![image](https://user-images.githubusercontent.com/43534309/225811385-0aea444e-80b3-4608-8a19-31abddaa4501.png) whereas in native for non-editable one we have pop-up ![image](https://user-images.githubusercontent.com/43534309/225811657-62c3f8c5-9ed2-4ad9-b291-48b55569c79b.png) and for editable we have pull-down ![image](https://user-images.githubusercontent.com/43534309/225812101-9939bd87-d3ef-4f1c-ac32-c5bd37ac647e.png) ------------- PR: https://git.openjdk.org/jdk/pull/12750