imprimir
Esta funcion en javascript embebido en el java te podra ayudar.
Saludos
www.geocities.com/tugijon
out.println("<html>");
out.println("<script>");
out.println("var impreso=false;");
out.println("function imprimir() {");
out.println(" impreso=true;");
out.println(" window.print();");
out.println(" if (navigator.appName!="Netscape") {");
out.println(" alert("Cerrar la ventana de impresion de boletines");");
out.println(" }");
out.println("}");
out.println("function cerrarVentana() {");
out.println(" if (impreso==true) {");
out.println(" window.close();");
out.println(" }");
out.println("}");
out.println("</script>");
out.println("<body onFocus="cerrarVentana()" onLoad="imprimir()">");
Saludos
www.geocities.com/tugijon
out.println("<html>");
out.println("<script>");
out.println("var impreso=false;");
out.println("function imprimir() {");
out.println(" impreso=true;");
out.println(" window.print();");
out.println(" if (navigator.appName!="Netscape") {");
out.println(" alert("Cerrar la ventana de impresion de boletines");");
out.println(" }");
out.println("}");
out.println("function cerrarVentana() {");
out.println(" if (impreso==true) {");
out.println(" window.close();");
out.println(" }");
out.println("}");
out.println("</script>");
out.println("<body onFocus="cerrarVentana()" onLoad="imprimir()">");