5.6
April 30, 2008
rita1012
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.
Entry Filed under: Uncategorized
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to comments via RSS Feed