BufferedImage.TYPE_INT_RGB);
final Graphics tableScreenshotGraphics = tableScreenshot.getGraphics();
// Component.printAll has to run in AWT Thread to print component contents correctly
if (SwingUtilities.isEventDispatchThread()) {
tableHeader.printAll(tableScreenshotGraphics);
} else {
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {