}
// <snip> JXTree rollover
// wraps the given icon into an ImagePainter with a filter effect
private Icon manipulatedIcon(Icon icon) {
PainterIcon painterIcon = new PainterIcon(new Dimension(icon
.getIconWidth(), icon.getIconHeight()));
BufferedImage image = (BufferedImage) ((ImageIcon) icon).getImage();
ImagePainter delegate = new ImagePainter(image);
delegate.setFilters(new InvertFilter());
painterIcon.setPainter(delegate);
return painterIcon;
}