-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
Name: rrT76497 Date: 08/31/98
import java.awt.*;
import java.awt.print.*;
public class SimpleTest {
public static void main(String args[]) {
PrinterJob printerJob = PrinterJob.getPrinterJob();
printerJob.setPrintable(new Printable()
{ {System.out.println("Sucessfully Printable
is created");}
public int print(Graphics graphics,PageFormat pf
, int pageIndex) {
return Printable.PAGE_EXISTS;
}});
System.out.println("The name of the
user"+printerJob.getUserName()+";");
}
}
When printerJob.getUserName() is given in the println, no output
comes to the console.
======================================================================