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

SwingSet as Applet dialogs don't work in Window L&F with JDK-1.2beta4-F

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.2.0
    • client-libs
    • 1.2beta4
    • sparc
    • solaris_2.6
    • Verified

      SwingSet when run as an applet dialogs don't work and throw exceptions in Window L&F with JDK-1.2beta4-F on Windows NT.

      Steps to Reproduce:
      0) Launch SwingSet with the appletviewer (use SwingSetApplet.html) with JDK-1.2beta4-F on Windows NT.
      1) Switch to Windows Look and Feel.
      2) Select Message Dialog from the Dialog menu.
      RESULT: The following exceptions are 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 Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)

            sswingtrsunw Swingtraq Swingtraq (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: