Re: Setting a default stylesheet for a custom control

2015-01-27 Thread Tom Eugelink
Indeed. There are more than enough examples to look at and copy from :-) https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-controls/src/main/java/jfxtras/scene/control/ListSpinner.java On 27-1-2015 23:30, Jonathan Giles wrote: If I'm correctly understanding your question, you want to overrid

Re: Setting a default stylesheet for a custom control

2015-01-27 Thread Jonathan Giles
If I'm correctly understanding your question, you want to override the getUserAgentStylesheet() method inside your Control class. In here you'll simply return the CSS file that is being used to style your custom control. I'm also aware there are some issues (with CSS error messages being prin

Setting a default stylesheet for a custom control

2015-01-27 Thread Pedro Duque Vieira
Hi, I'm developing a custom control, in the process I've used CSS to define its style. Now I want to make this control available for use by any developer, so I want this control to have a default stylesheet which is the one I've used to create the control much like javafx controls have a default s