how can i print a jframe containing objects on a A4 paper(source code)