jDragAndDrop library exposes the JavaFX drag and drop capability to B4J.
Drag and Drop will work within a B4J JavaFX application and between B4J JavaFXapplications - try running two copies of the demo and drag and drop between them. It will not work with non JavaFX applications and and also probably not with non B4J JavaFX applications because it deliberately exposes a simplified subset of the full drag and drop capabilities to make it easy to understand and use. Nevertheless you can pass quite complicated objects, not just primitives, as long as the objects are serializable.
Actually you can drop things from native programs and accept them as an Object but you would need to use JavaObject or Reflection to play with them.
EDIT :- Version 1.1 now posted. See post #3 for details.
Drag and Drop will work within a B4J JavaFX application and between B4J JavaFXapplications - try running two copies of the demo and drag and drop between them. It will not work with non JavaFX applications and and also probably not with non B4J JavaFX applications because it deliberately exposes a simplified subset of the full drag and drop capabilities to make it easy to understand and use. Nevertheless you can pass quite complicated objects, not just primitives, as long as the objects are serializable.
Actually you can drop things from native programs and accept them as an Object but you would need to use JavaObject or Reflection to play with them.
EDIT :- Version 1.1 now posted. See post #3 for details.
Attachments
Last edited: