icon.setDimension(new Dimension(width, height));
icon.paintIcon(c, g, 0, 0);
}
private void paintViewListIcon(Graphics2D g, JComponent c, int width, int height) {
ViewListIcon icon = new ViewListIcon();
icon.setDimension(new Dimension(width, height));
icon.paintIcon(c, g, 0, 0);
}