If you have two RadioButtons (dogRadio and catRadio), how should you code them to create a mutually exclusive relationship?

a. ToggleGroup radioGroup = new ToggleGroup();
dogRadio.setToggleGroup(radioGroup);
catRadio.setToggleGroup(radioGroup):

b. ToggleGroup radioGroup = new radioGroup();
dogRadio.setToggle(radioGroup);
catRadio.setToggle(radioGroup):

c. dogRadio.setToggleGroup();
catRadio.setToggleGroup():

d. ToggleGroup dogRadio = new ToggleGroup();
ToggleGroup catRadio = new ToggleGroup();


a. ToggleGroup radioGroup = new ToggleGroup();
dogRadio.setToggleGroup(radioGroup);
catRadio.setToggleGroup(radioGroup):

Computer Science & Information Technology

You might also like to view...

If object1 and object2 are objects of the same class, to make object2 a copy of object1 __________.

a. write a method for the class that will make a field by field copy of object1 data members into object2 data members b. use the copy method that is a part of the Java language c. use the default constructor to create object2 with object1 data members d. use an assignment statement to make object2 a copy of object1

Computer Science & Information Technology

A rotation handle is indicated by a:

A) blue triangle. B) yellow triangle. C) red circle. D) green circle.

Computer Science & Information Technology

Which command analyzes the overall health of Active Directory and performs replication security checks?

A. Get-ADReplication B. dcdiag C. net show D. repadmin

Computer Science & Information Technology

A(n) ______ is a program that performs a repetitive task on a network.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology