Question: Java Question 31 The method _____ gets the contents of the text field txtName. txtName.findString() txtName.getText(s) txtName.getString() txtName.getText() Question 32 The method _____ adds a
Java
Question 31
The method _____ gets the contents of the text field txtName.
| txtName.findString() |
| txtName.getText(s) |
| txtName.getString() |
| txtName.getText() |
Question 32
The method _____ adds a text area jta to a scrollpane jScrollPane.
| jScrollPane.insert(jta) |
| jScrollPane.add(jta) |
| jScrollPane.addItem(jta) |
| None of them. |
Question 33
The method _____ gets the text (or caption) of the button btnAdd.
| btnAdd.text() |
| btnAdd.findText() |
| btnAdd.retrieveText(). |
| btnAdd.getText() |
Question 34
A JList object can be populated with data stored in a(n) _____ object.
| ModelList |
| DefaultListModel |
| ListArray |
| DefaultModelList |
Question 35
The _____ method of a check box returns true if that button is checked.
| isSelected() |
| getSelected() |
| Selected() |
| isChecked() |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
