How many radio buttons can be selected at the same time as the result of the following code? hours = new JRadioButton("Hours") ;
Minutes = new JRadioButton("Minutes") ;
Seconds = new JRadioButton("Seconds") ;
Days = new JRadioButton("Days") ;
Months = new JRadioButton("Months") ;
Years = new JRadioButton("Years") ;
TimeOfDayButtonGroup = new ButtonGroup() ;
DateButtonGroup = new ButtonGroup() ;
TimeOfDayButtonGroup.add(hours) ;
TimeOfDayButtonGroup.add(minutes) ;
TimeOfDayButtonGroup.add(seconds) ;
DateButtonGroup.add(days) ;
DateButtonGroup.add(months) ;
DateButtonGroup.add(years) ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:
Verified
Q1: When using the BorderLayout manager, how many
Q4: Programs that operate in a GUI environment
Q5: When you write an action listener class
Q8: _ is a library of classes that
Q12: To use the ActionListener interface, as well
Q12: Which of the following statements is not
Q16: This layout manager arranges components in regions
Q27: Assume that radio references a JRadioButton object.
Q39: When an application uses many components, rather
Q40: To include Swing and AWT components in
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