2. What is wrong in the following code?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question
100%
Programming
2. What is wrong in the following code?
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.control.Button;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
public class Test extends Application {
public void start (Stage stage) {
Button btoK = new Button ("OK");
btOK.setOnAction (new EventHandler<ActionEvent>
public void handle (ActionEvent e) {
System.out.println(e.getSource () );
Transcribed Image Text:2. What is wrong in the following code? import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.control.Button; import javafx.event.ActionEvent; import javafx.event.EventHandler; public class Test extends Application { public void start (Stage stage) { Button btoK = new Button ("OK"); btOK.setOnAction (new EventHandler<ActionEvent> public void handle (ActionEvent e) { System.out.println(e.getSource () );
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT