On Tue, 16 Apr 2024 16:08:12 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> The ``Node.getPseudoClassStates()`` returns an unmodifiable collection. The >> bindings would not work. Therefore we need to use a listener and change the >> pseudo-class-state by using the ``Node.pseudoClassStateChanged(PseudoClass, >> boolean)`` method. > > how silly of me! you are right, of course. thank you for clarification. You are welcome, partner :-). It was a surprise for me too. It's strange, why it needs to be an unmodifiable collection. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1434#discussion_r1567639883