label.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight()));
label.setMaximumSize(new Dimension(icon.getIconWidth(), icon.getIconHeight()));
layer = new JXLayer(label);
layer.setPreferredSize(new Dimension(icon.getIconWidth() + 10, icon.getIconHeight()));
layer.setMaximumSize(new Dimension(icon.getIconWidth() + 10, icon.getIconHeight()));
layer.setUI(new AbstractLayerUI()
{
@Override
protected void paintLayer(Graphics2D g2, JXLayer layer)
{
// Es pinta la capa tal qual és