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

Windows L&F buttons throw exceptions for JDK1.2beta4-G

XMLWordPrintable

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

      Making toolbar floatable for Windows L&F throws exceptions for JDK1.2beta4-G.
      Happens on Win NT.

      Steps to simulate the same,
      1. Run SwingSet for JDK1.2beta4-G build.
      2. Change the L&F to Windows by pressing Alt-1.
      3. Click on Menus and toolbars tab.
      4. Drag the toolbar out and leave the mouse. - Throws exceptions.

      -- Exceptions thrown --
      Exception occurred during event dispatching:
      java.lang.IllegalArgumentException: null Color or Paint
              at java.lang.Throwable.<init>(Compiled Code)
              at sun.java2d.SunGraphics2D.setPaint(Compiled Code)
              at sun.awt.image.BufferedImageGraphics2D.setPaint(Compiled Code)
              at sun.awt.image.BufferedImageGraphics2D.setColor(Compiled Code)
              at java.awt.swing.SwingGraphics2D.setColor(Compiled Code)
              at java.awt.swing.plaf.windows.WindowsButtonUI.paintFocus(WindowsButtonUI.java:94)
              at java.awt.swing.plaf.basic.BasicButtonUI.paint(Compiled Code)
              at java.awt.swing.plaf.ComponentUI.update(Compiled Code)
              at java.awt.swing.JComponent.paintComponent(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.swing.JComponent.paintWithBuffer(Compiled Code)
              at java.awt.swing.JComponent._paintImmediately(Compiled Code)
              at java.awt.swing.JComponent.paintImmediately(Compiled Code)
              at java.awt.swing.RepaintManager.paintDirtyRegions(Compiled Code)
              at java.awt.swing.RepaintManager$WorkRequest.run(Compiled Code)
              at java.awt.swing.SystemEventQueueUtilities.processRunnableEvent(Compiled Code)
              at java.awt.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(Compiled Cod
      e)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
      Exception occurred during event dispatching:
      java.lang.IllegalArgumentException: null Color or Paint
              at java.lang.Throwable.<init>(Compiled Code)
              at sun.java2d.SunGraphics2D.setPaint(Compiled Code)
              at sun.awt.image.BufferedImageGraphics2D.setPaint(Compiled Code)
              at sun.awt.image.BufferedImageGraphics2D.setColor(Compiled Code)
              at java.awt.swing.SwingGraphics2D.setColor(Compiled Code)
              at java.awt.swing.plaf.windows.WindowsButtonUI.paintFocus(Compiled Code)
              at java.awt.swing.plaf.basic.BasicButtonUI.paint(Compiled Code)
              at java.awt.swing.plaf.ComponentUI.update(Compiled Code)
              at java.awt.swing.JComponent.paintComponent(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.swing.JComponent.paintChildren(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.swing.JComponent.paintChildren(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.swing.JComponent.paintChildren(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.swing.JLayeredPane.paint(Compiled Code)
              at java.awt.swing.JComponent.paintChildren(Compiled Code)
              at java.awt.swing.JComponent.paint(Compiled Code)
              at java.awt.Container.paint(Compiled Code)
              at sun.awt.windows.WComponentPeer.handleEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Window.dispatchEventImpl(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
      -----------------------

            sswingtrsunw Swingtraq Swingtraq (Inactive)
            mmadhugisunw Mukund Madhugiri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: