This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to save the contents of a JPanel as an image. It is pretty straightforward to write the graphics to a BufferedImage, however, the problem is when all of the JPanel is not actually displayed on the screen (in this particular case, it's not in a scrollpane, but I cannot change this). The getGraphics method only returns what is visible - is there any way to get the non-visible portion also?