Reputation: 99
I have a couple questions regarding JavaFX (1.3) and CSS. First of all, when I create a CheckBox node and set its styleclass, I can't actually get the checkbox to show up. It just looks like a text-label. Do I have to specify something specific to actually get the checkbox to appear?
Also, what is the CSS class/id I would use to modify all checkboxes in a program?
Upvotes: 0
Views: 5032
Reputation: 5061
I think the place you need to look at is this forum post:
I had similar issues with ListBox where the control is constructed from a number of components and has a bunch of different pseudo classes to be 'configured' depending on what you need it do look-like.
The Styling a checkbox thread points you to the javaFX runtime: $lib\ext\jfxrt.jar.
If you look in: com/sun/javafx/scene/control/skin/
You get the full naked 'defaults' CSS for the your controls. That said I am on here today to find out
... how to align the text base-line, so there's still work to do before it just magically looks right lol
Upvotes: 0