Note that there are some explanatory texts on larger screens.

plurals
  1. POJFXPanel drag and drop
    primarykey
    data
    text
    <p>I have a JPanel with two components. one is a JFXPanel and JLabel, when i drag items from a JTree in a separate windows i get a NPE exception</p> <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javafx.embed.swing.SwingDnD$2.dragDropEnd(SwingDnD.java:119) at java.awt.dnd.DragSource.processDragDropEnd(DragSource.java:769) at java.awt.dnd.DragSourceContext.dragDropEnd(DragSourceContext.java:437) at sun.awt.dnd.SunDragSourceContextPeer$EventDispatcher.run(SunDragSourceContextPeer.java:491) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711) at java.awt.EventQueue.access$000(EventQueue.java:104) at java.awt.EventQueue$3.run(EventQueue.java:672) at java.awt.EventQueue$3.run(EventQueue.java:670) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:681) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) </code></pre> <p>If i remove the JFXPanel i don't get any exceptions, When the JFXPanel is present the exception happens when i drop elements to the JLabel or the JFXPanel.</p> <p>I do drag &amp; drop by implementing my TransferHandler, and intalled it into the JLalbel, calling setTransferHandler.</p> <p>I have try to set a transfer handler in the JFXPanel that always return false from canImport but this doesn't make any difference.</p> <p>any ideas to fix or workaround this?</p> <p>Using: Java(TM) SE Runtime Environment (build 1.7.0_06-b24) on a Linux box</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload