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.
Stuck? You may find these lessons helpful: