On Fri, 18 Apr 2025 14:39:41 GMT, Andy Goryachev <ango...@openjdk.org> wrote:

> > So... you want me to add more styles so it then ends up looking like a 
> > correctly colored hyperlink?
> 
> No. I would like to retain the existing functionality where the styles 
> alternate between `[ "details-button", "less" ]` and `[ "details-button", 
> "more" ]`
> 
> If you look at the existing code, the setAll() in line 825 gets invoked at 
> the moment the details button is created because the listener gets called in 
> line 829.
> 
> So basically, your new code needs one change in (new) line 822:
> 
> `styleClasses.setAll("details-button");`
> 
> the rest is good.

Then we can close this, as that's what the original code does already.

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

PR Comment: https://git.openjdk.org/jfx/pull/1779#issuecomment-2825808010

Reply via email to