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

Pages

Categories

Links

Meta

Calendar

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

Posts by Month

Posts by Category

 
Follow

Get every new post delivered to your Inbox.