I need to set css styles in an external stylesheet file for the "Pane" view... The thing is... there isn't a Pane node in javafx...
For testing purposes I am using the Pane.id to access it, but it's my ideal solution.
So, anyone knows?
I need to set css styles in an external stylesheet file for the "Pane" view... The thing is... there isn't a Pane node in javafx...
For testing purposes I am using the Pane.id to access it, but it's my ideal solution.
So, anyone knows?
Thanks, but that is not what I am asking. I am already using that to target specific views.
What I am trying to figure out is what kind of javafx pane is a B4J Pane, so that I can target all panes of this type without having to add the styleclass to the view.
For example, I have 3 TreeViews in my app, and I only needed to add the .treeview to my css file, and that targets all present and futur treeviews without need of anything else.
A newly generated pane in B4j does not have a styleclass assigned, the same as the default Javafx pane view. Whereas a Treeview is created with the 'tree-view' styleclass by default. You can add your own in code (Pane1.Styleclasses.Add("ClassName") as suggested above, or by using a designer script extension if you want to do it in the designer https://www.b4x.com/android/forum/t...ass-designer-script-extension.143060/#content
You can add the same styleclass to multiple panes and then access the style class from the external style sheet.