Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What CSS property would you use to change the background color of a button in JavaFX?
Think about how you set background colors in web CSS.
How do you attach a stylesheet to a JavaFX scene?
Recall the syntax we've discussed for attaching styles.
What does the -fx-background-color property do?
Think about what background color you would want a button to have.
True or False: In JavaFX, all CSS rules are applied at runtime only.
Consider at what stage styles are typically set in an application.
Create a JavaFX button that changes its color when hovered over, and also has a different color when clicked.
Think about how hover and pressed styles are usually defined in CSS.
Design a theme switcher using JavaFX and CSS that enables users to toggle between a light and dark theme.
Consider how users can select themes in many popular applications.
5 more questions in this section. Enroll free to practise them all.
Enroll free