Which of the following statements assigns the C key as the mnemonic for the JButton object referenced by clearButton?
A) clearButton.addMnemonic(KeyEvent.VK_C) ;
B) clearButton.setMnemonic(KeyEvent.C) ;
C) clearButton.assignMnemonic(KeyEvent.VK_C) ;
D) clearButton.setMnemonic(KeyEvent.VK_C) ;
Correct Answer:
Verified
Q28: You assign a tool tip to a
Q29: After you create a menu item, you
Q30: The Dimension class is part of the
Q31: The indices for a list or combo
Q32: Which of the following is not a
Q34: The ListSelectionListener interface is in the _
Q35: What type of event is generated by
Q36: To give a combo box a text
Q37: The appearance of a particular system's GUI
Q38: The JList and JTextArea components do not
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