RFR: 8354795: DialogPane show details button wipes out base style class "hyperlink"

John Hendrikx jhendrikx at openjdk.org
Thu Apr 24 00:04:48 UTC 2025


On Fri, 18 Apr 2025 14:39:41 GMT, Andy Goryachev <angorya at 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


More information about the openjfx-dev mailing list