Ich habe eine kleine Methode geschrieben, um Bilder transparent zu machen. Sie schaut aber nicht sonderlich schön aus, da ich eine "Zwischen-Colorobjekt" benutze. Kann mir jemand bitte sagen, wie man das schöner machen könnte? 
Java:
private Icon makeTransparentIcon()
{
int w = defaultIcon.getIconWidth();
int h = defaultIcon.getIconHeight();
BufferedImage defaultImage = (BufferedImage) ((ImageIcon)defaultIcon).getImage();
BufferedImage newImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
Graphics g = newImage.getGraphics();
for(int y = 0; y < h; y++)
{
for(int x = 0; x < w; x++)
{
int rgb = defaultImage.getRGB(x, y);
if(((rgb >> 24) & 0x000000FF) == 0)
continue; //100 % transparente px. Auslassen.
Color cacheColor = new Color(rgb);
Color realColor = new Color(cacheColor.getRed(), cacheColor.getGreen(), cacheColor.getBlue(),
127);
g.setColor(realColor);
g.drawLine(x, y, x, y);
}
}
g.dispose();
return(new ImageIcon(newImage));
}