@Override public PageFormat defaultPage(PageFormat page){
  PageFormat newPage=(PageFormat)page.clone();
  getDefaultPage(newPage);
  return newPage;
}

@ Override public PageFormat defaultPage ( PageFormat page ) { PageFormat newPage = ( PageFormat ) page . clone ( ) ; getDefaultPage ( newPage ) ; return newPage ; }
the passed in pageformat will be copied and altered to describe the default page size and orientation of the printerjob ' s current printer . note : pageformat . getpaper ( ) returns a clone and getdefaultpage ( ) gets that clone so it won ' t overwrite the original paper .
