A JFrame supports three operations when the user closes the window. Which of the choices below is not one of the three:

a. DISPOSE_ON_CLOSE.
b. DO_NOTHING_ON_CLOSE.
c. LOWER_ON_CLOSE.
d. HIDE_ON_CLOSE.

c. LOWER_ON_CLOSE.

Computer Science & Information Technology

You might also like to view...

A shared resource is another name for a public folder

Indicate whether the statement is true or false

Computer Science & Information Technology

Enter the lucky1.html text into a new Web page, then load the page in the browser to verify that it behaves as described.

Most lotteries select winning numbers by drawing numbered balls out of bins. For example, a typical Pick-4 lottery will utilize four bins, each containing balls with numbers starting at 0. If there are 10 balls to choose from in each of four bins, labeled 0 to 9, then 104 = 10,000 different number sequences can potentially be picked. Increasing the number of balls significantly increases the number of possible sequences, which significantly decreases a person’s odds of winning. For example, if there are 20 balls to choose from in each bin, labeled from 0 to 19, then 204 = 160,000 different number sequences could be selected. Make a copy of the lucky1.html page from Figure 7.2 and name it pick4.html. Then modify this new page so that it simulates a Pick-4 lottery. Your page should have one text box, where the user can enter the highest ball number (it is assumed that the lowest ball number is always 0). When a button is clicked, four random ball numbers should be selected and displayed in a message such as the following: The Pick-4 winners are: 5-0-8-2

Computer Science & Information Technology