public void write(JWindow jW){
  if (page == null) {
    newpage();
  }
  if (page != null && pagenum >= prFirst) {
    int x=x0;
    int y=y0 + (linenum * lineheight);
    page.translate(x,y);
    jW.setVisible(true);
    jW.printAll(page);
    jW.setVisible(false);
    jW.dispose();
    page.translate(-x,-y);
  }
}

public void write ( JWindow jW ) { if ( page == null ) { newpage ( ) ; } if ( page != null && pagenum >= prFirst ) { int x = x0 ; int y = y0 + ( linenum * lineheight ) ; page . translate ( x , y ) ; jW . setVisible ( true ) ; jW . printAll ( page ) ; jW . setVisible ( false ) ; jW . dispose ( ) ; page . translate ( - x , - y ) ; } }
a method to allow a jwindow to print itself at the current line position < p > this was not in the original class , but was added afterwards by dennis miller . < p > intended to allow for a graphic printout of the speed table , but can be used to print any window . the jwindow is passed to the method and prints itself at the current line and aligned at the left margin . the calling method should check for sufficient space left on the page and move it to the top of the next page if there isn ' t enough space .
