On Wed, 27 May 2026 19:08:21 GMT, Marius Hanl <[email protected]> wrote:

> The `Cell` registers a listener to the `focusedProperty`.
> In the listener the `focused` `PseudoClass` is set or unset depending on the 
> state of the `focusedProperty` (true/false).
> Followed by a TODO, stating: `TODO is this necessary??`
> 
> The answer is no, this is unnecessary and already done by `Node`.
> The `focusedProperty` will set or unset the "focused" `PseudoClass` in the 
> same way that is done in `Cell`.
> 
> Mentioned first in this comment  
> https://github.com/openjdk/jfx/pull/1935#discussion_r3243531543
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: f3fbac0b
Author:    Marius Hanl <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/f3fbac0b0467a7ea614cb99821ed360a82218e7f
Stats:     35 lines in 2 files changed: 29 ins; 4 del; 2 mod

8385533: Cell "focused" PseudoClass handling is unnecessary

Reviewed-by: mstrauss, angorya

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

PR: https://git.openjdk.org/jfx/pull/2176

Reply via email to