Create a JavaFX application that implements a short survey. The first question should ask the user for his or her favorite color and present the choices “red”, “orange”, “blue”, and “green” in radio buttons. The second question should ask the user for his or her age and present the choice in a spinner with the range 10–100. The third and final question should ask the user to select his or her favorite programming language from the choices “Java”, “C++”, “Python”, and “C#” presented in a choice box. Add a button, that when clicked, summarizes the user’s selections.

The solution is similar to the Additional Controls Demo given in the text.

See the code in SurveyForm.java

Computer Science & Information Technology

You might also like to view...

Record Navigation buttons provide much of the navigation tools available on the Navigation bar

Indicate whether the statement is true or false

Computer Science & Information Technology

Match the following parts of the PowerPoint interface with its function

I. Slides tab A. add and edit text for use by the speaker II. Slide pane B. contains the slide number, theme name, and view options in Normal view III. Notes pane C. shows slide thumbnails IV. status bar D. displays bulleted text of a presentation V. Outline tab E. edit the current slide

Computer Science & Information Technology