JDK-4411985 : The swing component does not get printed
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.3.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2001-02-05
  • Updated: 2001-02-17
  • Resolved: 2001-02-16
Related Reports
Duplicate :  
Description
Platform - Solaris 8, Win2000, win98SE
Browsers - netscape4, netscape6, IE5

Steps to Reproduce.

step 1 - Install JRE b-15 on the target machine

step 2 - go to  http://sqesvr.eng.sun.com/deployment1/ws/doc/proc/JPI_printing.html

step 3 - Execute test case 4 PrintSwingComp_Plugin

step 4 - Click the print button.

step 5 - The components do not get printed. 


Comments
SUGGESTED FIX In PrintSwingComp_Plugin.java in ActionListener interface method implementation in the switch case for case 0 change existing line to: printJob.setPrintable(new Print(nullpane.getPanel()); margarita.fisher@East 2001-02-14
14-02-2001

EVALUATION Well, the test fails only if you try to print the very first tab - NullLayout. If you try to print any other tab (and there are fifteen all together) - any of them gets printed. I think this is due to the fact that in the applet's code PrintSwingComp_Plugin.java in ActionListener interface method implementation in the switch case for case 0 we do the following: printJob.setPrintable(new Print(contentPane)); while in all other cases we do printJob.setPrintable(new Print(<tabname>.getPanel()); margarita.fisher@East 2001-02-14
14-02-2001