Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 1.2.0
-
Fix Version/s: 1.2.0
-
Component/s: client-libs
-
Labels:
Description
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.
======================================================================