public class RolloverIcon
extends java.lang.Object
implements javax.swing.Icon
(I got it from
http://www.devdaily.com/swing/java-button-jbutton-example-rollover. CAC, April 21, 2010).
Modified by CAC< April 21, 2010 (Their use of Composites does not work with applets,
so I am resizing the images instead of changing color.
Constructor and Description |
---|
RolloverIcon(javax.swing.ImageIcon icon) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon