/* * SK's Minecraft Launcher * Copyright (C) 2010-2014 Albert Pham <http://www.sk89q.com> and contributors * Please see LICENSE.txt for license information. */ package com.skcraft.launcher.swing; import javax.swing.*; import java.awt.*; public final class EmptyIcon implements Icon { private int width; private int height; public EmptyIcon() { this(0, 0); } public EmptyIcon(int width, int height) { this.width = width; this.height = height; } public int getIconHeight() { return height; } public int getIconWidth() { return width; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }