You create panels within the class itself So you do not need to use Java object. And the same raised events can be managed equally by B4A and B4i
In my class the views are created in the design is passed as a parameter to the class, which will handle drag-and-drop inside.
To do something similar to yours I should create transparent panels to attach to each view that is passed to me as a parameter.
If the views that are passed as parameters in turn are panels that contain Edittext, Checkbox or Button, sticking on another transparent panel would create problems because the view could not be clicked or selected
From this comes my need to use Java not to overlap a panel above the views, but to manage the drag-and-drop within the class