Which of the following assigns ALT+C as a mnemonic key for the JButton object, clearButton?
A) clearButton.addMnemonic(KeyEvent.VK_C) ;
B) clearButton.setMnemonic(KeyEvent.C) ;
C) clearButton.setMnemonic(KeyEvent.VK_C) ;
D) clearButton.assignMnemonic(KeyEvent.VK_C) ;
Correct Answer:
Verified
Q29: This is a specialized dialog box that
Q30: If nameList is a JList component, use
Q31: The getSelectedIndex method returns:
A) the index of
Q32: Images may be displayed in labels and:
A)
Q33: The ImageIcon class constructor accepts:
A) an integer
Q35: A _ object specifies a component's width
Q36: What will happen when the following statement
Q37: The following statement: textList.setSelectionMode(
ListSelectModel.SINGLE_INTERVAL_SELECTION);
A) sets the textList
Q38: If addressList exists and has values stored
Q39: What will display when the following code
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents