question: 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 ) ; } }
target:  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.