I am not sure if you are trying to make it so you can see your desktop as the background? But if you are painting on a Frame or JFrame then You can creat a BufferedImage, and if you paint that it expose the backround color of your frame.
import java.awt.*;
import java.awt.image.*;
BufferedImage bi;
bi = new BufferedImage(x, y, BufferedImage.TYPE_INT_RGB);
public void paint(Graphics g){
g.drawImage(0, 0, x, y, this);
}
where x and y is the total size of the screen, and BufferedImage.TYPE_INT_RGB is the type, I think and int.
or you can set an alphacomposite which controls transparency of an object, such as an image.
private AlphaComposite alp;
alp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f);
g2d.setComposite(alp);
g2d.draw(yourImage, 0, 0, x, y, this);
where the .3f means 30% transparency and the g2d is the graphics of your frame. I think this might answer your question, if it doesn't please include more informationof your problem.