2

Reading blogs and articles on using css in javafx, I see class selectors such as

.table-row-cell:empty {
    -fx-background-color: -fx-base;
}

.table-row-cell:empty .table-cell {
    -fx-border-width: 0px;
}

being used, and indeed they work in my own code. However I can't find anywhere where these are documented - it seems like the official documentation has no mention of them: http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html.

1 Answer 1

2

Refer to this official tutorial Skinning JavaFX Applications with CSS section Default Style Sheet.

The default style sheet for JavaFX applications is caspian.css, which is found in the JavaFX runtime JAR file, jfxrt.jar. This style sheet defines styles for the root node and the UI controls. ...

You can find out those selectors in mentioned CSS file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.