Java Reference
In-Depth Information
them?
Stage
and
Scene
nodes
Node
Application
init( )
,
start( )
, and
stop( )
start( )
False?
True
Label
and
Button
Platform
is packaged in
javafx.Application
. When called,
exit( )
immediately ter-
minates the program. With this in mind, change the
JavaFXEventDemo
program
shown in this chapter so that it has two buttons called Run and Exit. If Run is
pressed, have the program display that choice in a label. If Exit is pressed, have the
application terminate. Use lambda expressions for the event handlers.