public class MenuArrowIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.plaf.UIResource
JMenu
s.Constructor and Description |
---|
MenuArrowIcon(javax.swing.JMenu menu)
Creates the arrow icon for the specified menu.
|
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 MenuArrowIcon(javax.swing.JMenu menu)
menu
- Menu.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