Since 6.0 version JxBrowser supports two rendering modes: heavyweight (default mode) and lightweight. Drag and drop functionality is supported in both heavyweight and lightweight rendering modes, but for each rendering mode it works differently.
Lightweight Rendering Mode
In lightweight rendering mode Drag and Drop functionality is implemented using Java Swing and JavaFX Drag&Drop API. Drag and Drop support is limited. It supports only the following features:
- Drag selected text and links on loaded web page and drop them into other applications.
- Drag selected text and links on loaded web page and drop them into text fields or text areas on the same web page.
- Drag text from other applications and drop it into text fields or text areas on loaded web page.
Heavyweight Rendering Mode
In heavyweight rendering mode Drag and Drop functionality is implemented by Chromium engine. Chromium handles all Drag and Drop operations, so it works exactly as in Google Chromium.
Disabling Drag and Drop
By default Drag and Drop is enabled. To disable Drag and Drop use the BrowserView.setDragAndDropEnabled(boolean enabled) method or the jxbrowser.chromium.dnd.enabled=false System Property.
Swing JxBrowser 6.3 and higher
JavaFX JxBrowser 6.3 and higher