Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4203480

Inconsistent results from printing plugin within Netscape & IE on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.2.1_002
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      x86
    • OS:
      windows_nt

      Backports

        Description

          My customer has tried printing from plugin under several different
        environments, here is what happened. He has a simple applet with 1 text field,
        1 label and 1 button.
          
          1) HP Laser Jet 5Si w/HP Laserjet 5Si driver. Windows NT, Netscape 4.5 using
        plugin 1.1.1 w/binary fix:
          
          Printing came out "blured" All text seems to have been printed twice, with one
        copy slightly offset from the other causing a blur effect.
          
          2) HP LaserJet 4Plus w/HP LaserJet 4Plus Driver, Windows NT, Netscape 4.5
        using plugin 1.1.1 w/binary fix:
          
          Printing came out same as #1
          
          3) HP LaserJet 5Si w/HP LaserJet 4Si driver. Windows 95, Netscape 4.05 using
        plugin 1.1.1 w/o binary fix:
          
          Printing came out same as #1, except grey background was printed in a tiny
        checkerboard fashion.
          
          4) HP LaserJet 4Plus w/HP Laser Jet 4M driver, windows 95, Netscape 4.05
        w/plugin 1.1.1 no binary fix.
          
          Printing came out same as #3
          
          5) Unknown configuration. Customer was printing a different applet, this is
        their real application, not their test case. The applet has several
        jtabbedpanes.
          
          Printing merged all the panes, and seemed to print them all at the same time.
        Customer has not overridden the paint methods.
          
          I have done my own tests:
          
          6) Lexmark Optra N w/unknown driver, windows 95, Netscape 4.05 w/plugin 1.1.2
          
          Text was not blurry, but solid background was painted in a tightly packed grid
        of dots. The pattern of dots alternated every inch or so.
          
          7) Lexmark Optra N w/unknown driver, windows 95, Internet Explorer 4.0.1
        w/plugin 1.1.2
          
          Printing was bizarre. A large black box was printed. In the top left corner
        of the box was a smaller white box which contained the "Loading Java Applet.."
        text that the plugin displays upon startup. This was after the applet loaded.
          


          There is a bug, #4191511 which may be related. Printing doesn't work at all
        on Solaris, there is a bug on this as well.
          
        The following is the test code used:
        JApplet1.java
        /*
        A basic extension of the com.sun.java.swing.JApplet class
        */

        import com.sun.java.swing.*;
        import java.awt.*;

        public class JApplet1 extends JApplet
        {
        public void init()
        {
        getContentPane().setLayout(null);
        setSize(426,322);
        JLabel1.setText(" TESTING!!!");
        getContentPane().add(JLabel1);
        JLabel1.setFont(new Font("Dialog", Font.BOLD, 20));
        JLabel1.setBounds(36,108,355,60);
        JButton1.setText("Test Button");
        getContentPane().add(JButton1);
        JButton1.setBounds(132,228,108,40);
        JTextField1.setText("Print Test Text");
        getContentPane().add(JTextField1);
        JTextField1.setBounds(120,24,170,28);
        }

        com.sun.java.swing.JLabel JLabel1 = new com.sun.java.swing.JLabel();
        com.sun.java.swing.JButton JButton1 = new com.sun.java.swing.JButton();
        com.sun.java.swing.JTextField JTextField1 = new com.sun.java.swing.JTextField();
        }


        Here is the html file to use to view:
        <!--"CONVERTED_APPLET"-->
        <!-- CONVERTER VERSION 1.0 -->
        <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        WIDTH = 500 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">
        <PARAM NAME = CODE VALUE = "JApplet1.class" >
        <PARAM NAME = ARCHIVE VALUE = "swingall.jar" >

        <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
        <COMMENT>
        <EMBED type="application/x-java-applet;version=1.1" java_CODE = "JApplet1.class" java_ARCHIVE = "swingall.jar" WIDTH = 500 HEIGHT = 500 pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><NOEMBED></COMMENT>

        </NOEMBED></EMBED>
        </OBJECT>

        <!--
        <APPLET CODE = "JApplet1.class" ARCHIVE = "swingall.jar" WIDTH = 500 HEIGHT = 500 >


        </APPLET>
        -->
        <!--"END_CONVERTED_APPLET"-->

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  svioletsunw Scott Violet (Inactive)
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: