In what type of object does the ComboBox control keep its list of items?
> How can you change an animation’s interpolator?
> Write code that calculates the average of all the elements in the grades array that you declared in Question 6. Data from Question 6: Declare a two-dimensional int array named grades. It should have 30 rows and 10 columns.
> In what package is the Duration class?
> In a window 640 pixels wide by 480 pixels high, what are the coordinates of the pixel in the lower-right corner?
> How do you specify the amount of time that an animation should last?
> Which transition class causes a node to fade?
> Which transition class causes a node’s fill color to change?
> Which transition class causes a node’s stroke color to change?
> Which transition class causes a node to become larger or smaller?
> Which transition class causes a node to rotate?
> Which transition class causes a node to move from one position on the screen to another?
> Which of the following is not a subclass of the Shape class? 1. Circle 2. Rectangle 3. Triangle 4. Ellipse
> In a program you need to store the identification numbers of ten employees (as int values) and their weekly gross pay (as double values). 1. Define two arrays that may be used in parallel to store the 10 employee identification numbers and gross pay amou
> What shape method do you call to scale a shape along the Y axis?
> What shape method do you call to scale a shape along the X axis?
> What are the coordinates of the pixel in the upper-left corner of the window?
> When speaking of colors, what does RGB mean?
> If a style definition for a specific type of node contradicts a style rule in the .root definition, which takes precedence—the more specific style definition, or the .root definition?
> If you want to apply styles to all of the nodes in a scene, what selector would you use in a style definition?
> Assume scene is the name of a Scene object, and stylesheet.css is the name of a CSS stylesheet. Write the statement that applies the stylesheet.css stylesheet to scene.
> If you want to place a dotted border around a Label control, which CSS style property would you set?
> How do you determine the file that the user selected with either an open dialog or a save dialog?
> How do you display a save dialog?
> 1. Write a statement that declares a String array initialized with the following strings: “Einsteinâ€, “Newtonâ€, “Copernicusâ€, and “Keplerâ€. 2. Write a loop that displays the contents of each element in the array that you declared in Question
> How do you display an open dialog?
> In what package is the FileChooser class?
> What type of event do menu items generate when selected by the user?
> What class do you use to create a check menu item? How do you cause it to be initially selected?
> How do you create a relationship between radio menu items so only one may be selected at a time?
> What class do you use to create a radio menu item? How do you cause it to be initially selected?
> If you want a control’s text to appear in bold, which CSS style property would you set?
> What class do you use to create a menu item?
> What class do you use to create a menu?
> What class do you use to create a menu bar?
> Write code that creates an ArrayList that can hold String objects. Add the names of three cars to the ArrayList, and then display the contents of the ArrayList.
> Briefly describe each of the following menu system items: 1. Menu bar 2. Menu 3. Menu item 4. Check menu item 5. Radio menu item 6. Submenu 7. Separator bar
> How do you retrieve the text that the user has typed into a TextArea control?
> What is text wrapping? What is line wrapping? How do you enable text wrapping in a TextArea control?
> What is the TextArea’s default number of rows displayed? How do you change the number of rows?
> What is the TextArea’s default number of columns displayed? How do you change the number of columns?
> What is the difference between a TextArea and a TextField?
> How do you get a Slider’s current value?
> Which CSS style property specifies the font for a control’s text?
> What type of event does a Slider generate when its slider knob is moved?
> What Slider methods do you use to perform each of these operations? 1. Establish the spacing of major tick marks. 2. Establish the spacing of minor tick marks. 3. Cause tick marks to be displayed. 4. Cause labels to be displayed.
> The variable names references an integer array with 20 elements. Write a for loop that prints each element of the array.
> What is the difference between an editable ComboBox and an uneditable ComboBox?
> What type of event do ComboBox controls generate when they are clicked?
> How do you retrieve the selected item from a ComboBox?
> How do you set the orientation of a ListView control?
> What is multiple interval selection mode?
> What is single selection mode?
> How do you retrieve the selected item from a ListView control?
> 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?
> How do you set the size of a ListView?
> Consider the following class declaration: public class Square { private double sideLength; public double getArea () { return sideLength * sideLength; } public double getSideLength () { return sideLength; } } 1. Write a no-arg constructor for this class.
> What type of event do CheckBox controls generate when they are clicked?
> In code, how do you make a CheckBox appear selected?
> How do you determine in code whether a CheckBox is selected?
> What type of event do RadioButton controls generate when they are clicked?
> In code, how do you make a RadioButton appear selected?
> How do you determine in code whether a RadioButton is selected?
> How do you create a mutually exclusive relationship between RadioButton controls?
> In a style definition, what type of selector begins with a # character?
> In the hexadecimal color value #0511FF, the FF value specifies which color component?
> What is the type selector name that corresponds to each of the following JavaFX types? Button TextField Label ImageView
> Design a class named Pet, which should have the following fields: - name. The name field holds the name of a pet. - animal. The animal field holds the type of animal that a pet is. Example values are “Dogâ€, “Catâ€, and “Birdâ€. - age. The age fiel
> What type of scene graph node can have children? What type cannot?
> What are the three types of nodes in a scene graph?
> What is a scene graph?
> Is a window the same as a stage, or a scene?
> What is JavaFX?
> What is an event-driven program?
> Describe the three BorderPane constructors.
> What are the names of the regions in a BorderPane container?
> Describe three different techniques discussed in this chapter for writing event handlers.
> How do you retrieve the text that the user has entered into a TextField control?
> Write a method named getName that prompts the user to enter his or her first name, and then returns the user’s input.
> In what package is the TextField class?
> What method do you call to register an event handler with a Button control?
> In what package is the EventHandler interface?
> What is an event handler?
> When the user runs a program in a text-based environment, such as the command line interface, what determines the order in which things happen?
> What is an event? Give an example.
> Once you have created a GridPane container, how do you add a control to a Âspecific column and row?
> How do you set the horizontal and vertical spacing in a GridPane container?
> What package is the Insets class in?
> What is the difference between spacing and padding, in regard to layout containers?
> Write a method named timesTen. The method should accept a double argument, and return a double value that is ten times the value of the argument.
> If you want to change the image that an ImageView object is displaying, what method do you call?
> If you want to make sure that an image does not appear stretched after it is resized, what method do you call?
> How do you set the width and height of an ImageView?
> If you want to display an image in a layout container, do you add an Image object, or an ImageView object to the layout container?
> What package contains the Image and ImageView classes?
> How does a command line interface work?
> What package is the Pos enumeration in?
> How do you change the alignment of an HBox container?
> The Scene class is in what package?
> If you want to arrange controls in a grid, with rows and columns, what layout container would you use?
> A program contains the following method definition: public static int cube(int num) { return num * num * num; } Write a statement that passes the value 4 to this method and assigns its return value to a variable named result.