I have been looking around for a way in which to set Swing client properties easily in JavaFX, without subclassing the whole widget. This seems like the simplest (and most obvious, in hindsight) way of doing this. Documentation is still a bit thin on the ground so I am unsure if this is the proper way to do things:
trigger on (new Button) {
button.putClientProperty("Quaqua.Button.style", "placard");
}
The above code allows me to inform the underlying Quaqua LookAndFeel that I wish to use the placard button style. If I wanted to use this selectively, I would have to subclass Button.fx, provide an additional attribute (say style) and then apply the property if the attribute is set.
Obviously, you need to know the internal name for the Swing component you are trying to access, this API documentation is pretty helpful for that.
