Question

QUESTION 4 If you have two RadioButtons (dogRadio and catRadio), how should you code them to...

QUESTION 4

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

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

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

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

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

10 points   

QUESTION 5

  1. Which of the following statements creates a Slider with a range of 1 to 20 with a starting value of 1?

    Slider slider = new Slider(0, 20, 1);

    Slider slider = new slider(0.0, 20.0, 1.0);

    Slider slider = new Slider(1.0, 20.0, 1.0);

    Slider slider = new Slider(1.0, 20);

10 points   

QUESTION 6

  1. The type of control normally used when you want the user to only be allowed to select one option from several possible options is the __________.

    Button

    RadioButton

    CheckBox

    Any of these

10 points   

QUESTION 7

  1. In the hexadecimal color value #CCAA99, the CC refers to the __________ color component?

    red

    blue

    green

    yellow

QUESTION 8

  1. Given the following styles, what size will the text of the label be?
    .root { -fx- font-size: 12pt; }
    .label { -fx- font-size: 18pt; }

    12 pts

    18 pts

    15 pts

    This will cause an error because there are duplicate font-size styles.

10 points   

QUESTION 9

  1. To replace a ListView control's existing items with a new list of items, use the __________ method.

    getItems.addAll()

    getItems().setAll()

    getItems().addAll()

    getItems.setAll()

0 0
Add a comment Improve this question Transcribed image text
Answer #1
4)  ToggleGroup radioGroup = new ToggleGroup();
dogRadio.setToggleGroup(radioGroup);
catRadio.setToggleGroup(radioGroup):
5)  Slider slider = new Slider(1.0, 20.0, 1.0);
6)  RadioButton
7)  red
8)  18 pts
9)  getItems().setAll()   
Add a comment
Know the answer?
Add Answer to:
QUESTION 4 If you have two RadioButtons (dogRadio and catRadio), how should you code them to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT