CSS: style leaks from unrelated stylesheet

Werner Lehmann lehmann at media-interactive.de
Thu Oct 9 12:58:19 UTC 2014


Turns out that the 3rd party control adds its stylesheet like this:

class SomeControlSkin...
   static {
     StyleManager.getInstance().addUserAgentStylesheet(...)
   }

In this way it is not only using private API but also the stylesheet is 
not associated with only such control nodes and therefore seems to 
affect other nodes, too. Is this correct, and should the stylesheet 
rather be provided by overriding Control.getUserAgentStylesheet?

Werner

On 09.10.2014 12:00, Werner Lehmann wrote:
> Then a dialog stage is displayed and its scene does not use the 3rd
> party control. However, a combobox list-cell (its button cell) is still


More information about the openjfx-dev mailing list