File
Doc
Category
Size
Date
Package
OvalIcon.java
API Doc
Example
458
Mon Nov 09 12:45:54 GMT 1998
None
OvalIcon
java.lang.Object
public class OvalIcon extends Object implements Icon
Fields Summary
private int
width
private int
height
Constructors Summary
public OvalIcon
(
int
w,
int
h)
width = w; height = h;
Methods Summary
public
int
getIconHeight
()
return height;
public
int
getIconWidth
()
return width;
public void
paintIcon
(
java.awt.Component
c,
java.awt.Graphics
g,
int
x,
int
y)
g.drawOval(x, y, width-1, height-1);
Java Code Source