title: How to save JPanel as JPEG with its components
body: <p>I need to save a chessboard as a jpeg file. I know how to save a java component into JPEG. But my problem is that I use JButtons as cells and when I try to save the whole chessboard, only the panel is saved. Does anybody know <strong>how to save a JComponent WITH ITS CHILD COMPNENTS into JPEG (png etc.)</strong> Thank you in advance.</p>