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)

I see this now. I just tried to apply the same fix like with editable 
comboBoxes, but the positioning of the popup doesn't seem to change. Looking 
into why

-------------

PR: https://git.openjdk.org/jdk/pull/12750

Reply via email to