RFR: 8354795: DialogPane show details button wipes out base style class "hyperlink"
Andy Goryachev
angorya at openjdk.org
Fri Apr 18 14:42:59 UTC 2025
On Fri, 18 Apr 2025 09:26:43 GMT, John Hendrikx <jhendrikx 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.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1779#issuecomment-2815571644
More information about the openjfx-dev
mailing list