| extured
Button Bar This example of the TextURLButtonBar applet demonstrates the use of a small GIF or JPEG file as a button bar texture. Notice that it is possible to position buttons on the button bar. In this example, the buttons are divided into two groups of two buttons. Try moving your mouse over the buttons and clicking on the buttons (clicking on the buttons will not cause a URL to load in this example). Notice that the text in the browser's status bar changes as the mouse is moved over each button. Also, sounds have been associated with different button states -- if you have a sound card, make sure that your speakers are turned on. | |||||||||||||||||||||||||
| The texture used for this example is 32 by 32
pixel JPEG file (1,014 bytes -- slightly less than 1K). Since the dimensions of
the texture image is less than the dimensions of the button bar, the texture is
tiled so that it covers the entire bar. If desired, the parameter
textureButtonsOnly
could have been used so that the gap between the two sets of buttons would not
be covered with the texture. This is useful if used in conjunction with a
background image file (see the
background
parameter). If the Java class files and the image file is located in the same directory as the HTML, then the complete applet tag would be defined as illustrated below. Click on the PARAM name for detailed information about the parameter.
| |||||||||||||||||||||||||
otes
on the Applet Parameters
| |||||||||||||||||||||||||
| Copyright © 1997 by Modern Minds, Inc. | |||||||||||||||||||||||||