Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Exam 13: Advanced Gui Applications
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
The default selection mode for a JList component is
Question 2
Multiple Choice
To add a tool tip to a component use
Question 3
True/False
When using a slider,by default,tick marks are not displayed,and setting their spacing does not cause them to be displayed.
Question 4
True/False
A label's preferred size is determined only by calling the setPreferredSize method.
Question 5
Multiple Choice
What does the following statement do? JTextArea textField = JTextArea(message,25,15) ;
Question 6
Multiple Choice
If addressList is a JList component,what will the value of x be after the following statement is executed? x = addressList.getSelectedIndex() ;
Question 7
Multiple Choice
Which of the following assigns ALT+C as a mnemonic key for the JButton object,clearButton?
Question 8
Multiple Choice
If nameList is a JList component,use the following statement to display 4 rows in nameList.
Question 9
True/False
In the following code the setPreferredSize method sets the size of the text,"Have a good day". label = new Jlabel("Have a good day",SwingConstants.CENTER); label.setPreferredSize(new Dimension(400,200));
Question 10
Multiple Choice
To add the JList object addressList to a scroll pane named scrollPane,use the following
Question 11
Multiple Choice
A menu system may consist of each of the following,except
Question 12
Multiple Choice
If the combo box addressBox contains a list of strings,why is the returned value of getSelectedItem method in the following code cast to String? String selectedAddress; SelectedAddress = (String) addressBox.getSelectedItem() ;