This content has been marked as final. Show 2 replies
I am developing a GUI software in JavaFx and this also happened to me.
I have found a way to resolve this problem. The NullPointerException was
thrown when the onMouseDragged method in javafx Node receiving the first
mouse-drag event added the gesture Node to the scene (the gesture
node moves with the cursor while dragging), and later the mouse was
draged over a JComponent wraped by a SwingComponent. To overcome
this problem I have used FX.deferAction method for adding the gesture Node
to the scene after returning from the first mouse-drag event.
there seems to be a bug in:
I reported the bug "*RT-4912 SwingComponent toFront/toBack*" already on 2009/06/07. Nothing has happened so far. Apparently, SwingComponent is treated as a second-class citizen.