Hi, I have to take screenshot of some area on the desktop.
I am doing it this way:
Java Code:
BufferedImage image = new Robot().createScreenCapture(area.areaRect);
					ImageIO.write(image, "jpg",
							new File(current));
//then I paint in on JPanel
and every screenshot saved to .jpg looks like this one:
http://i.imgur.com/e6e4Z6R.jpg
It doesn't happen for pngs and gifs.

I googled about this problem and found a solution, creating image by the Toolkit class:
Java Code:
Image toolkitImage = Toolkit.getDefaultToolkit().createImage(
                    imageUrl);
but I have no idea how can I take screenshot with it.

Any ideas? Thansk! :)