Here is a Java bean that allows to Drag 'n Drop between Forms items.
You can Drag 'n Drop between mono and multi-line text fields and between images.
Because the "real Java" Drag 'n Drop is not implemented in the Forms application, This one is "hand made".
So when you release the mouse button to drop the object, you have to move the mouse about one pixel to
really drop the object.
Press the Ctrl keybord key if you want to keep the original object (COPY).
This demo load the image from the c:/wile.jpg image file, so copy this file from the zip file to your c:/ directory.
The Java code
The implementation class of the Bean Item
The sample dialog
. Download the DnD.zip file
. Unzip the file
. copy the DnD.jar file in the <ORACLE_HOME>/forms/java directory
. Edit your /forms/server/formsweb.cfg file to add this jar file
. Open the DnD.fmb module (Oracle Forms 9.0.2)
. Compile all and run the module