Sorry for my english.
Let's compare ways to build themed controls in JavaFX. I used CSS, javafx.scene.control.Skin and javafx.scene.CustomNode to implement same mixin class. Code of this class is
public mixin class AButton {
public var coWidth: Number = 100;
public var coHeight: Number = 100;
public var coTop: Number = 100;
public var coLeft: Number = 100;
public var coTitle: String = "...";
public var coAction: function(): Void;
public var coColor: Color = Color.web("#ff0000");
}
Download Netbeans project here.
This is form with 3 buttons of each implementation. You can test buttons in this applet:
How it works:
Use javafx.scene.CustomNode to create your own themed components. Don't use javafx.scene.control.Skin. It is a waste of time
CSS is trash. You can't create nice component with it. JavaFX team wasted time for wrong technology.
Main conclusion: hire professional artist if you need professional GUI. Hire professional programmers if you need professional GUI components.