Exam 13: Advanced GUI Applications
Exam 1: Introduction to Computers and Java51 Questions
Exam 2: Java Fundamentals61 Questions
Exam 3: Decision Structures64 Questions
Exam 4: Loops and Files57 Questions
Exam 5: Methods60 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class64 Questions
Exam 8: A Second Look at Classes and Objects50 Questions
Exam 9: Text Processing and More About Wrapper Classes60 Questions
Exam 10: Inheritance70 Questions
Exam 11: Exceptions and Advanced File IO56 Questions
Exam 12: A First Look at GUI Applications60 Questions
Exam 13: Advanced GUI Applications58 Questions
Exam 14: Applets and More54 Questions
Exam 15: Creating GUI Applications With Javafx and Scene Builder40 Questions
Exam 16: Recursion42 Questions
Exam 17: Databases48 Questions
Select questions type
The following statement: textList.setSelectionMode(
ListSelectModel.SINGLE_INTERVAL_SELECTION);
(Multiple Choice)
4.9/5
(48)
The ImageIcon class supports all the following file types, EXCEPT:
(Multiple Choice)
4.8/5
(39)
This is a specialized dialog box that allows the user to select a color from a predefined palette of colors.
(Multiple Choice)
4.9/5
(37)
If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedIndex return?
(Multiple Choice)
4.7/5
(38)
To force the JFrame that encloses a window to resize itself automatically when a larger object is placed in the frame, use:
(Multiple Choice)
4.9/5
(33)
When an item in a Jlist object is selected it generates a(n):
(Multiple Choice)
4.8/5
(44)
If addressList is a JList component, what will the value of x be after the following statement is executed?
X = addressList.getSelectedIndex();
(Multiple Choice)
4.8/5
(35)
What will display when the following code is executed: JLabel label = new JLabel ("It is a beautiful morning.");
Labed.setIcon(SunnyFace.gif);
(Multiple Choice)
4.9/5
(40)
What does the following statement do?
JTextArea textField = JTextArea(message, 25, 15);
(Multiple Choice)
4.7/5
(37)
What will the following code do when it is executed?
JTextArea message = JTextArea(greetings, 50, 70);
JScrollPane scrollPane = new JScrollPane(message);
(Multiple Choice)
4.8/5
(41)
When you write a change listener class method for a slider, it must implement the ChangeListener interface which is in the javax.swing.event package.
(True/False)
4.7/5
(31)
If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedItem return?
(Multiple Choice)
4.8/5
(38)
A menu system may consist of each of the following, EXCEPT:
(Multiple Choice)
4.8/5
(41)
What will be the results of executing the following statements?
X.setEditable(true);
X.setText("Tiny Tim");
(Multiple Choice)
4.9/5
(37)
What will display when the following code is executed?
ImagePanel = new JPanel();
ImageLabel = new JLabel();
ImagePanel.Add(imageLabel);
ImageIcon sunnyFaceImage =
New ImageIcon("SunnyFace.gif");
ImageLabel.setIcon(sunnyFaceImage);
Pack();
(Multiple Choice)
4.8/5
(38)
A ________ object specifies a component's width and height.
(Multiple Choice)
5.0/5
(32)
Showing 21 - 40 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)