-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
After entering ending page number in "PAGES->___TO___", pressing CRLF causes the entry to be discarded and the dialog box closed.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
compile and run the following test program:
1) click Pages
2) enter a starting page number
3) click the TO fextfield
4) enter an ending page number
5) press CRLF
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected behavior is for the entry to be accepted and the dialog box terminated as if the "PRINT" button has been clicked
ACTUAL -
data entered prior to pressing CRLF are discarded or ignored
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.print.*;
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
import java.awt.*;
public class pgDialog implements Printable {
public static void main(String[] args) {
PrintRequestAttributeSet aset=new HashPrintRequestAttributeSet();
aset.add(new MediaPrintableArea(.5f,.5f,7.5f,10f,MediaPrintableArea.INCH));
PrinterJob PJ=PrinterJob.getPrinterJob();
PJ.printDialog(aset);
Attribute a=aset.get(PageRanges.class);
System.out.println(a);
}
public int print(Graphics g, PageFormat pageFormat, int PI) throws PrinterException {
return NO_SUCH_PAGE;
}
}
---------- END SOURCE ----------
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
After entering ending page number in "PAGES->___TO___", pressing CRLF causes the entry to be discarded and the dialog box closed.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
compile and run the following test program:
1) click Pages
2) enter a starting page number
3) click the TO fextfield
4) enter an ending page number
5) press CRLF
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected behavior is for the entry to be accepted and the dialog box terminated as if the "PRINT" button has been clicked
ACTUAL -
data entered prior to pressing CRLF are discarded or ignored
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.print.*;
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
import java.awt.*;
public class pgDialog implements Printable {
public static void main(String[] args) {
PrintRequestAttributeSet aset=new HashPrintRequestAttributeSet();
aset.add(new MediaPrintableArea(.5f,.5f,7.5f,10f,MediaPrintableArea.INCH));
PrinterJob PJ=PrinterJob.getPrinterJob();
PJ.printDialog(aset);
Attribute a=aset.get(PageRanges.class);
System.out.println(a);
}
public int print(Graphics g, PageFormat pageFormat, int PI) throws PrinterException {
return NO_SUCH_PAGE;
}
}
---------- END SOURCE ----------