jdk/test/java/awt/PrintJob/MultipleEnd/MultipleEnd.java
changeset 2697 b27edaf0767e
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
2696:1189480fe090 2697:b27edaf0767e
    42 
    42 
    43 class MultipleEndFrame extends Frame {
    43 class MultipleEndFrame extends Frame {
    44     public MultipleEndFrame() {
    44     public MultipleEndFrame() {
    45         super("MultipleEnd");
    45         super("MultipleEnd");
    46         setVisible(true);
    46         setVisible(true);
    47         PrintJob pj  = getToolkit().getPrintJob(this, "MuiltipleEnd", null);
    47 
       
    48         JobAttributes job = new JobAttributes();
       
    49         job.setDialog(JobAttributes.DialogType.NONE);
       
    50         PrintJob pj  = getToolkit().getPrintJob(this, "MultipleEnd", job, null);
    48         if (pj != null) {
    51         if (pj != null) {
    49             pj.end();
    52             pj.end();
    50             pj.end();
    53             pj.end();
    51         }
    54         }
    52     }
    55     }