Java Reference
In-Depth Information
4.
Clear the resizable check box and then notice that the resizable value becomes false. then
try to resize the window and note that it is not permitted. select the resizable check box
again to make the window resizable.
5.
select the fullscreen check box. notice that the program occupies the full screen and that the
window decorations are not visible. Clear the fullscreen check box to restore the program to
its former size.
6.
edit the text in the text field beside the title label, noticing that the text in the window's title
bar is changed to reflect the new value.
7.
Drag the window to partially cover another window, and click toBack( ). notice that this places
the program behind the other window, therefore causing the z-order to change.
8.
With a portion of the program's window behind another window, but with the tofront( ) button
visible, click that button. notice that the program's window is placed in front of the other window.
9.
Click close( ), noticing that the program exits.
10.
invoke the program again, passing in the string "undecorated" . if invoking from netBeans,
use the project properties dialog box to pass this argument as shown in figure 2-3 . the
"undecorated" string is passed as a parameter without a value.
Figure 2-3. Using NetBeans' Project Properties dialog box to pass an argument into the program
11.
notice that this time the program appears without any window decorations, but the white
background of the program includes the background of the window. the black outline in the
screenshot shown in figure 2-4 is part of the desktop background.
Search WWH ::




Custom Search