Get the number of revolutions from the user

Display Listing 2.

Listing 2 calls the world function named NumberDialog near the beginning.

This displays the dialog shown in Figure 7.

The dialog solicits numeric input from the user.

(The world object provides similar functions for soliciting Boolean and String input from the user.)

Figure 7. Numeric user input dialog.