<AWT Dev> [9] Review request for 8177919: java.awt.Desktop.setDefaultMenuBar() should be specified to throw IllegalStateException
Semyon Sadetsky
semyon.sadetsky at oracle.com
Tue Apr 11 17:04:25 UTC 2017
+1
--Semyon
On 04/11/2017 09:53 AM, Sergey Bylokhov wrote:
> Looks fine.
>
>> Hello,
>>
>> please review the fix
>>
>> http://cr.openjdk.java.net/~azvegint/jdk/9/8177919/00/
>>
>> for the issue
>>
>> https://bugs.openjdk.java.net/browse/JDK-8177919
>>
>> This fix removes throwing of ISE, this allows to use default menu bar with LaF's other than Aqua (with apple.laf.useScreenMenuBar set to true).
>>
>> This became possible after JDK-8166683[0] fix.
>>
>> Current documentation of Desktop.setDefaultMenuBar() has implnotes:
>>
>> * @implNote Aqua Look and Feel should be active to support this on Mac OS.
>>
>> I leave it unchanged, since I don't want to advertise the apple.laf.useScreenMenuBar property.
>>
>> [0] https://bugs.openjdk.java.net/browse/JDK-8166683
>>
>>
>> --
>> Thanks,
>> Alexander.
>>
More information about the awt-dev
mailing list