-
Enhancement
-
Resolution: Won't Fix
-
P2
-
8
-
generic
-
windows
FULL PRODUCT VERSION :
JDK 8, JDK 7, JDK 6
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows OS
A DESCRIPTION OF THE PROBLEM :
Some users experience a problem with inability of JDK's print dialogs (native and cross-platform) to load and display default printing preferences of a newly selected print service, after a selection of the print service was manually changed by the users in the print dialogs. Currently both print dialogs load and display the default preferences of only the default system print service, which is automatically selected by the print dialog as a current print service, after the print dialog window is displayed for the first time till the moment of its closure.
"Native" print dialog is invoked by the method:
java.awt.print.PrinterJob.printDialog()
"Cross-platform" print dialog is invoked by the method:
java.awt.print.PrinterJob.printDialog(PrintRequestAttributeSet attributes)
Taking into consideration the facts listed below behavior expected by the users cannot be implemented currently, but an alternative solution which can afford the users to reach their goal can still be designed.
- The expected functionality is not part of the current JDK's design.
- Print dialogs of other native applications like Internet Explorer, Notepad, WordPad show behavior similar to JDK's print dialogs.
- Possible implementation of such behavior in JDK will require many code changes which can lead to unjustified risk of appearance of new bugs in well established part of JDK or discontent of many users, who are used to the current functionality.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Set up 2 printers: printer1 with portrait as a default orientation, printer2 with landscape as the default orientation.
2. Compile Java source files from the attached test case "TestCase.zip" by the command "javac PrintExample.java", and run the command "java PrintExample".
3. Click "JPS" button.
4. Do the following several times:
* change a printer in "general" tab.
* check an orientation in "page setup" tab.
Notice that the orientation setting is never changed.
5. Close JPS print dialog.
6. Click "2D" button.
7. Do the following several times:
* change a printer.
* click "properties" button to check an orientation setting.
Notice that the orientation setting is never changed.
JDK 8, JDK 7, JDK 6
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows OS
A DESCRIPTION OF THE PROBLEM :
Some users experience a problem with inability of JDK's print dialogs (native and cross-platform) to load and display default printing preferences of a newly selected print service, after a selection of the print service was manually changed by the users in the print dialogs. Currently both print dialogs load and display the default preferences of only the default system print service, which is automatically selected by the print dialog as a current print service, after the print dialog window is displayed for the first time till the moment of its closure.
"Native" print dialog is invoked by the method:
java.awt.print.PrinterJob.printDialog()
"Cross-platform" print dialog is invoked by the method:
java.awt.print.PrinterJob.printDialog(PrintRequestAttributeSet attributes)
Taking into consideration the facts listed below behavior expected by the users cannot be implemented currently, but an alternative solution which can afford the users to reach their goal can still be designed.
- The expected functionality is not part of the current JDK's design.
- Print dialogs of other native applications like Internet Explorer, Notepad, WordPad show behavior similar to JDK's print dialogs.
- Possible implementation of such behavior in JDK will require many code changes which can lead to unjustified risk of appearance of new bugs in well established part of JDK or discontent of many users, who are used to the current functionality.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Set up 2 printers: printer1 with portrait as a default orientation, printer2 with landscape as the default orientation.
2. Compile Java source files from the attached test case "TestCase.zip" by the command "javac PrintExample.java", and run the command "java PrintExample".
3. Click "JPS" button.
4. Do the following several times:
* change a printer in "general" tab.
* check an orientation in "page setup" tab.
Notice that the orientation setting is never changed.
5. Close JPS print dialog.
6. Click "2D" button.
7. Do the following several times:
* change a printer.
* click "properties" button to check an orientation setting.
Notice that the orientation setting is never changed.