Questions from Starting Out With Java


Q: How do you create a mutually exclusive relationship between RadioButton controls?

How do you create a mutually exclusive relationship between RadioButton controls?

See Answer

Q: How do you determine in code whether a RadioButton is selected?

How do you determine in code whether a RadioButton is selected?

See Answer

Q: In code, how do you make a RadioButton appear selected?

In code, how do you make a RadioButton appear selected?

See Answer

Q: What type of event do RadioButton controls generate when they are clicked

What type of event do RadioButton controls generate when they are clicked?

See Answer

Q: How do you determine in code whether a CheckBox is selected?

How do you determine in code whether a CheckBox is selected?

See Answer

Q: In code, how do you make a CheckBox appear selected?

In code, how do you make a CheckBox appear selected?

See Answer

Q: What type of event do CheckBox controls generate when they are clicked

What type of event do CheckBox controls generate when they are clicked?

See Answer

Q: Consider the following class declaration: public class Square {

Consider the following class declaration: public class Square { private double sideLength; public double getArea () { return sideLength * sideLength; } public double getSideLength () { return sideLeng...

See Answer

Q: How do you set the size of a ListView?

How do you set the size of a ListView?

See Answer

Q: You haven’t yet learned about the MenuButton control, but

You haven’t yet learned about the MenuButton control, but you have learned how to convert JavaFX class names to CSS type selectors. What would the type selector name for the MenuButton class be?

See Answer