189k views
2 votes
NetBeans creates three files for a JavaFX FXML Application project—an FXML markup file for the GUI, a file containing the app's main class, and a file containing the app's ________ class.

a. view
b. model
c. main
d. controller

User Maher
by
7.6k points

1 Answer

4 votes

Final answer:

NetBeans creates several files for a JavaFX FXML Application project, including a controller class which is essential for handling user interactions within the app.

Step-by-step explanation:

NetBeans, when used to create a JavaFX FXML Application project, generates several files, including an FXML markup file for the graphical user interface (GUI), a file that contains the app's main class, and a file that includes the app's controller class. The right answer to the student's question is option d. controller.

The controller class in a JavaFX application plays an essential role in handling user interactions. It contains the logic to respond to events, like button clicks or menu selections. The controller works in conjunction with the view (FXML file) and a model if utilized, which holds the data and business logic of the application.

User Jpschroeder
by
8.4k points