On Wed, 12 Aug 2026 05:29:34 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Aqua already prevents it
>>
>> if (!GraphicsEnvironment.isHeadless()) {
>> LookAndFeel.installProperty(component, "dragEnabled", true);
>> }
>>
>> and BasicTextUI installs false, so it cannot throw so there will not be any
>> headless exception
>
> The "LookAndFeel.installProperty()" is a public method, just call it directly
> and pass true value to trigger an exception.
so, what you suggest... add HeadlessException spec addendum to installProperty
that it can throw HeadlessException or check isHeadless in
JComponent.setUIProperty for dragEnabled property?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/32101#discussion_r3763846639