JDK-6214380 : Quality setting is disabled and always set to Normal in Print Dialog
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-01-05
  • Updated: 2016-03-22
Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Professional Version 2002 Service Pack 2

A DESCRIPTION OF THE PROBLEM :
public class PrintTest {
public static void main(String[] args)
{
    PrinterJob pj = PrinterJob.getPrinterJob();
    PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
    pj.printDialog(attributes); //(1)
    pj.printDialog(); //(2)
}		
}

Print Dialog from (1) has Quality set to Normal and disable on the Appearance tab, but Print Dialog(2) has Quality set to Quick and this value can be changed.
PrintQuality for this printer in system is the same as in Print Dialog (2).
Printer models are HP LaserJet 2200 Series PCL 6 and HP LaserJet 6P/6MP PostScript



REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-1-05 20:37:39 GMT

Comments
EVALUATION The quality is disabled because the printer driver returns a printer resolution value as the default quality e.g. 600 instead of the expected DMRES_xxx GDI predefined value. One way to fix this is to create a "custom" quality which equates it to a resolution. ###@###.### 2005-1-05 20:53:33 GMT
05-01-2005