Archive for April 30th, 2008
5.6
1. The method getIconWidth() and getIconehight () return the width and height, respectively, of an image in pixels. These method of the panel class to compute the position of the image relative to the center of the panel.
2. Set the shape’s position to the new position.
Refresh the panel, which has the effect of clearing the panel and redrawing the shape at its new position
3. A program can detect and response to mouse events by attaching listener objects to a panel. When a particular type of mouse event occurs in a panel, its listen informed.
Add a comment April 30, 2008