Kotlinlearncs.online LogoJava
Return to List

Homework: JavaFX Inner Class

Created By: Chris Taylor
/ Version: 2023.8.0

Implement a class, Question that contains a start(Stage stage) method. In the start() method, you must create a Button object and set the onAction event to an object from an inner class of the Question class. The inner class must implement the EventHandler<ActionEvent> interface causing "clicked" to be printed to the console whenever the event is triggered.

Related Lessons

Stuck? You may find these lessons helpful: