Java Reference
In-Depth Information
12.12
( Use labels ) Write a program that displays the image icon and the text in four
labels, as shown Figure 12.29c.
12.13
( Display 54 cards ) Expand Exercise 12.9 to display all 54 cards in 54 labels, nine
per row.
*12.14
( Display random 0 or 1 ) Write a program that displays a 10-by-10 square matrix,
as shown in Figure 12.30. Each element in the matrix is 0 or 1 , randomly gener-
ated. Display each number centered in a label.
VideoNote
Display a random matrix
F IGURE 12.30
The program randomly generates 0s and 1s.
 
Search WWH ::




Custom Search