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

Required

Required, hidden



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

Pages

Categories

Calendar

April 2008
M T W T F S S
« Feb   May »
 123456
78910111213
14151617181920
21222324252627
282930  

Most Recent Posts