Java Reference
In-Depth Information
SR 3.46 What is the result of separately making each of the following changes
to the LabelDemo program? You may make the change, compile and
run the program, and observe and report the results. Briefly explain
what you observe.
a. Change the third parameter of each of the three JLabel construc-
tor calls to SwingConstants.LEFT .
b. Change the horizontal text position of label2 from LEFT to RIGHT .
c. Change the horizontal text position of label2 from LEFT to
BOTTOM .
d. Change the vertical text position of label3 from BOTTOM to
CENTER .
Search WWH ::




Custom Search