Exam 12: Graphical User Interfaces Using Java FX

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What constructor can we use to set the width and height of a window?

(Multiple Choice)
4.7/5
(36)

What are the two methods of the MouseEvent class that enable us to retrieve the x and y coordinates of the mouse?

(Multiple Choice)
4.9/5
(38)

In the BorderPane class, what are setTop, setBottom, setLeft, setRight, and setCenter?

(Essay)
4.9/5
(31)

Inside an FXML file, if we want to specify a method to execute when the user clicks on a button, we give the name of the method as the value of the __________ attribute.

(Multiple Choice)
4.8/5
(34)

When we use a FadeTransition, what parameter do we give from and to values?

(Multiple Choice)
4.8/5
(46)

The Pane class can hold other objects.

(True/False)
4.7/5
(40)

The method getText of the TextField class (inherited from TextInputControl) returns a String.

(True/False)
4.9/5
(41)

JavaFX does not support CSS.

(True/False)
4.8/5
(37)

When a PieChart is bound to an ObservableList, if the data in the latter changes, the PieChart is automatically redrawn.

(True/False)
4.8/5
(50)

We can have only one component inside a Pane.

(True/False)
4.9/5
(39)

Which package does the Pane class belong to?

(Multiple Choice)
5.0/5
(31)

__________ is a layout container that arranges its components vertically.

(Short Answer)
4.8/5
(36)

CSS attributes start with the prefix:

(Multiple Choice)
4.8/5
(35)

The EventHandler interface does not use generics.

(True/False)
5.0/5
(35)

We want to provide the user with a choice of continuous values between 20 and 50. What JavaFX component could we use?

(Multiple Choice)
4.9/5
(36)

When creating a GUI application class using JavaFX, which class do we typically extend?

(Multiple Choice)
4.8/5
(30)

In a JavaFX GUI application, a MouseEvent generates if the user clicks with the mouse.

(True/False)
4.8/5
(28)

In JavaFX, clicking on a button generates a(n):

(Multiple Choice)
4.8/5
(31)

A private inner class can directly access the fields of the public class that it is in.

(True/False)
4.8/5
(37)

In JavaFX, which package does the ActionEvent class belong to?

(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 89
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)