Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

.JavaFX: A __ is a specialized control which has the ability to be selected. It

ID: 3840636 • Letter: #

Question

.JavaFX: A __ is a specialized control which has the ability to be selected. It is rendered similarly to a Button. However, they are two different types of Controls. A Button is a "command" button which invokes a function when clicked. This control is simply a control with a Boolean indicating whether it has been selected. a. Button b. Toggle Control c. RadioButton d. ToggleButton .JavaFX: For the TextField control Txt1, if you want to make the field read-only you should do the following a. Txt1.setEditable(false); b. Txt1.setEnabled(false); c. Txt1.Readonly(true); d. Txt1.IsEditable(false); .This class enables listeners to track changes when they occur a. ArrayList b. HashList c. TreeList d. ObservableList .The 'super' keyword is used to: a. Call a constructor in the class's superclass. b. Call a method in the class's superclass. c. Reference an attribute in the class's superclass. d. Answers A & B e. Answers A, B and C .Which control would you choose for the following data A list of values (either static or dynamic list) User can select more than one item More than one item is displayed on the screen at once a. ComboBox b. ListView c. TextField d. RadioButton

Explanation / Answer

1. A TOGGLE BUTTON is a specialized control which has the ability to be selected. Typically a ToggleButton is rendered similarly to a Button. However, they are two different types of Controls. A Button is a "command" button which invokes a function when clicked. A ToggleButton on the other hand is simply a control with a Boolean indicating whether it has been selected.

2. for making the text field ReadOnly we can use Txt1.ReadOnly(true);

3. Observablelist  allows listeners to track changes when they occur.

4. answer for the 'super' keyword is A,B AND C.

5. Here we can use ComboBox as radio button can be used for selecting single item while textfield is used to enter the item dinamically and as well as in the list view we can sekect only one item so combobox is the right answer.

Thanks.