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

Printing AWT SCrollbar throws and exception on linux/Solaris with XToolkit.

XMLWordPrintable

    • b55
    • generic
    • generic

      Printing AWT Scrollbar throws and exception on linux/Solaris with XToolkit.
      This bug is occuring due to a partial fix of the bug 5045936. The ClassException which was occuring when trying to print a frame having 2 checkboxes - is still occuring when a scrollbar is added to this frame.
      This is occuring on
      JDS(Cinnabar)
      Sun Java Desktop, VERSION = 2.0, RELEASE = 1.0, Sun Java Desktop System,
      Release 3 - build 09, Assembled 04 May 2004
      Steps to reproduce;
      1)Execute the testcase on linux JDS or on solaris with the Xtoolkit.
      2.Click on the print button. The following exception is thrown:
      java.lang.ClassCastException: sun.print.ProxyPrintGraphics
      at sun.awt.X11.XScrollbar.paint(XScrollbar.java:142)
      at sun.awt.X11.XScrollbarPeer.paint(XScrollbarPeer.java:85)
      at sun.awt.X11.XComponentPeer.print(XComponentPeer.java:519)
      at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:85)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at java.awt.Component.printAll(Component.java:2836)
      at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(SunGraphicsCallback.java:130)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
      at sun.awt.X11.XPanelPeer.print(XPanelPeer.java:54)
      at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:85)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at java.awt.Component.printAll(Component.java:2836)
      at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(SunGraphicsCallback.java:130)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
      at sun.awt.X11.XPanelPeer.print(XPanelPeer.java:54)
      at sun.awt.X11.XFramePeer.print(XFramePeer.java:481)
      at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:85)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at java.awt.Component.printAll(Component.java:2836)
      at PrintJobTest.actionPerformed(PrintJobTest.java:49)
      at java.awt.Button.processActionEvent(Button.java:388)
      at java.awt.Button.processEvent(Button.java:356)
      at java.awt.Component.dispatchEventImpl(Component.java:3933)
      at java.awt.Component.dispatchEvent(Component.java:3781)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


            art Artem Ananiev (Inactive)
            smandalisunw Srinivas Mandalika (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: