Java Reference
In-Depth Information
12 . ListView is a control that displays a directory list of files on the local file system.
True or False?
False. ListView displays of list of items from which the user can choose.
13 . Convert the Swing-based file comparison program in Try This 16-1 so it uses JavaFX
instead. In the process, make use of another of JavaFX's features: its ability to fire an
action event on a button under program control. This is done by calling fire( ) on the
button instance. For example, assuming a Button called myButtton , the following
will fire an action event on it: myButton.fire( ) . Use this fact when implementing the
event handlers for the text fields that hold the names of the files to compare. If the
user presses ENTER when in either of these fields, simply fire an action event on the
Compare button. The event-handling code for the Compare button will then handle
the file comparison.
Search WWH ::




Custom Search