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

Javafx SwingComponent throws Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: fx1.2
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Windows XP Prof, JavafX 1.2

      Description

      Calling Node.toFront() on any javafx SwingComponent or on any Node containing a SwingComponent will result in exception

      Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
      at com.sun.embeddedswing.EmbeddedEventQueue.moveToVisibleAndOnScreen(EmbeddedEventQueue.java:155)
              at com.sun.embeddedswing.EmbeddedEventQueue.beforeDispatch(EmbeddedEventQueue.java:376)
              at com.sun.embeddedswing.EmbeddedEventQueue.dispatchEvent(EmbeddedEventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

      This wasn't a problem on Javafx 1.1

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: