mouseDragged( )

mouseDragged( ) The mouse Dragged( ) method is called when the mouse moves with any of its.p~tt6ns pressed. In this applet, we want to do the same thIng on drag or move, so we just call mouseMoved( ) directly, passing in the same parameters we received. mouseMoved( )...

paint( )

paint( ) The paint () method is quite simple. First, it checks to seen the offscreen buffer has been created. yet. If it hasn’t, lateInit( ) is called to create the buffer and load the menu image. After that, it draws the left half of the image on the offscreen...

init( )

init( ) When the applet is being initialized, init( ) saves the size in the Dlmc Siun Variable d and parses the applet param tags. It then uses a String Tokenizer to parse strings delimited by the plus sign to create the string arrays url and target. The number...

The Source Image

The Source Image While you won't see the code for Navigation here, looking at its GIF image and APPLET tag shows clearly what Image Menu is going to do. The source image for Navigation in Figure 30-2 shows seven columns, each of which provides a visual representation...