This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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?