File
Doc
Category
Size
Date
Package
OvalIcon.java
API Doc
Example
460
Thu Oct 24 20:14:20 BST 2002
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