-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.1, 5.0
-
b137
-
x86, sparc
-
linux, solaris_8, solaris_9, windows_98
The Page Ranges fields in the cross-platform dialog on Solaris must be populated based on what pageable's getNumberOfPages() returns. If this method returns '0', then the page ranges fields in the print dialog must be disabled, not allowing the user to modify the value. If the value returned is greater than 0, then the 'To Page' field in the print dialog must reflect that value. Calling PrinterJob.printDialog() on solaris brings up a cross-platform dialog and the above said functionalities does not work on that dialog. The same method call on Windows brings up a native print dialog and the above functionalities work properly on the PIT build. (2 bugs have been filed on this before and they have been fixed for native dialog on the PIT build specified below).
This functionality does not work on Solaris right from JDK1.4+.
I have attached 2 sample codes. In one of them, the pageable implementation returns '0' for getNumberOfPages() and should make the page ranges fields disabled in this case. Another sample code will return '2' for getNumberOfPages() which should be reflected in the 'To Page' field of the page ranges in the cross-platform dialog.
The PIT build in which the above said functionalities work for a Native Print Dialog.
java version "2d-jcg-win-01-2003-06-22.tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 2d-jcg-win-01-2003-06-22.tiger)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b09, mixed mode)
This functionality does not work on Solaris right from JDK1.4+.
I have attached 2 sample codes. In one of them, the pageable implementation returns '0' for getNumberOfPages() and should make the page ranges fields disabled in this case. Another sample code will return '2' for getNumberOfPages() which should be reflected in the 'To Page' field of the page ranges in the cross-platform dialog.
The PIT build in which the above said functionalities work for a Native Print Dialog.
java version "2d-jcg-win-01-2003-06-22.tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 2d-jcg-win-01-2003-06-22.tiger)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b09, mixed mode)
- duplicates
-
JDK-5050432 In Print dialog Page Range is not displayed for Solaris9(Gnome)
-
- Closed
-
-
JDK-4886087 PrinterJob's dialog ignores any Pageable object's getNumberOfPages() method
-
- Closed
-
- relates to
-
JDK-4869502 Page Ranges 'To page' field is not populated when pageable is used
-
- Closed
-
-
JDK-4869539 Page Ranges fields are not disabled when number of pages is set to 0 in pageable
-
- Closed
-