java.lang.Object
javax.swing.plaf.basic.BasicOptionPaneUI.MessageIcon
- All Implemented Interfaces:
- javax.swing.Icon
- Enclosing class:
- BasicOptionPaneUI
- private static class BasicOptionPaneUI.MessageIcon
- extends java.lang.Object
- implements javax.swing.Icon
A helper class that implements Icon. This is used temporarily until
ImageIcons are fixed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicOptionPaneUI.MessageIcon
private BasicOptionPaneUI.MessageIcon()
getIconWidth
public int getIconWidth()
- This method returns the width of the icon.
- Specified by:
getIconWidth in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- This method returns the height of the icon.
- Specified by:
getIconHeight in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- This method paints the icon as a part of the given component using the
given graphics and the given x and y position.
- Specified by:
paintIcon in interface javax.swing.Icon