package org.rr.commons.swing.icon; import java.awt.Component; import java.awt.Graphics; import javax.swing.Icon; /** * This {@link Icon} draws nothing. It can be useful for place holding etc. */ public class EmptyIcon implements Icon { private final int width; private final int height; public EmptyIcon(int width, int height) { this.width = width; this.height = height; } public int getIconWidth() { return width; } public int getIconHeight() { return height; } public void paintIcon(Component c, Graphics g, int x, int y) { } }