Lines Matching refs:icon
103 * Creates a <code>JMenuItem</code> with no set text or icon.
110 * Creates a <code>JMenuItem</code> with the specified icon.
112 * @param icon the icon of the <code>JMenuItem</code>
114 public JMenuItem(Icon icon) {
115 this(null, icon);
140 * Creates a <code>JMenuItem</code> with the specified text and icon.
143 * @param icon the icon of the <code>JMenuItem</code>
145 public JMenuItem(String text, Icon icon) {
147 init(text, icon);
188 * Initializes the menu item with the specified text and icon.
191 * @param icon the icon of the <code>JMenuItem</code>
193 protected void init(String text, Icon icon) {
198 if(icon != null) {
199 setIcon(icon);
369 Icon icon = null;
371 icon = (Icon)a.getValue(Action.SMALL_ICON);
373 setIcon(icon);