Fill in the code in the underlined location to display the mouse point location when the mouse is pressed in the pane.
```
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class Test extends Application {
@Override // Override the start method in the Application class
public void start(Stage primaryStage) {
Pane pane = new Pane();
______________________________________
Scene scene = new Scene(pane, 200, 250);
primaryStage.setTitle("Test"); // Set the stage title
primaryStage.setScene(scene); // Place the scene in the stage
primaryStage.show(); // Display the stage
}
/**
* The main method is only needed for the IDE with limited JavaFX
* support. Not needed for running from the command line.
*/
public static void main(String[] args) {
launch(args);
}
}```
a. pane.setOnMouseClicked((e) -> System.out.println(e.getX() + ", " + e.getY()));
b. pane.setOnMouseReleased(e -> {System.out.println(e.getX() + ", " + e.getY())});
c. pane.setOnMousePressed(e -> System.out.println(e.getX() + ", " + e.getY()));
d. pane.setOnMouseDragged((e) -> System.out.println(e.getX() + ", " + e.getY()));
c
You might also like to view...
_______ is not a reference type.
a. A class type b. An interface type c. An array type d. A primitive type
The percentage rate of increase is calculated by using this formula:
A) base * amount of increase. B) base/amount of increase. C) amount of increase/base. D) amount of increase * base percent.
Which of the following form controls allows a visitor to add feedback in the form of sentences or words?
A. text area B. radio button C. checkbox D. drop-down box
When a sound clip is added to a slide, a sound icon and a play _____ appear on the slide.
A. button B. bar C. tab D. flashing icon