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

paint method in javax.swing.JComponent don't work anymore.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



      Name: rk38400 Date: 11/11/98


      Everything worked fine in JDK1.2beta4 and swing 1.0.3.
      When converting all com.sun.java.... to javax...., errors began.
      The javax.swing.JComponent.paint method is now causing errors...
      <snip from java -verbose class>
      [Loaded javax.swing.GraphicsWrapper from d:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar]
      Exception in thread "main" [Loaded java.lang.IllegalStateException from d:\Program Files\JavaSoft\JR
      E\1.2\lib\rt.jar]
      [Loaded java.lang.InternalError from d:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar]
      [Loaded sun.io.MalformedInputException from d:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar]
      [Loaded sun.io.UnknownCharacterException from d:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar]
      java.lang.NullPointerException
              at javax.swing.JComponent.paint(Compiled Code)
              at java.awt.Component.paintAll(Component.java:1841)
              at ContextLayout.layoutCenter(ContextLayout.java:191)
              at ContextLayout.layoutContainer(ContextLayout.java:140)
              at java.awt.Container.layout(Container.java:490)
              at java.awt.Container.doLayout(Container.java:480)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validate(Container.java:532)
              at java.awt.Window.show(Window.java:282)
              at ContextLayoutTest.main(ContextLayoutTest.java:96)
      Exception occurred during event dispatching:
      [Loaded java.io.InterruptedIOException from d:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar]
      java.lang.NullPointerException
              at javax.swing.JComponent.paint(Compiled Code)
              at java.awt.Component.paintAll(Component.java:1841)
              at ContextLayout.layoutCenter(ContextLayout.java:191)
              at ContextLayout.layoutContainer(ContextLayout.java:140)
              at java.awt.Container.layout(Container.java:490)
              at java.awt.Container.doLayout(Container.java:480)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validateTree(Compiled Code)
              at java.awt.Container.validate(Container.java:532)
              at java.awt.Window.dispatchEventImpl(Window.java:695)
              at java.awt.Component.dispatchEvent(Component.java:2289)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:258)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
      <end snip>

      Everything worked fine before. the only change that was made, was the updating of the com.sun.java to javax.
      Everything was recompiled (-deprecation - verbose) - no problems
      (Review ID: 41942)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: