Dropping a Component In Codename One to The Last Position
<p>I have enabled drag and drop in my <a href="https://www.codenameone.com/" rel="nofollow noreferrer">Codename One</a> <code>Container</code> and and placed draggable components within. I did this using:</p>

<pre><code>container.setDropTarget(true);
</code></pre>

<p>And for the components I used <code>setDraggable(true)</code> </p>

<p>This works seamlessly for the most part when I drop above another child container. If I dropped below all the child components within the parent <code>Container</code> the drop operation fails. I want the child container to be positioned last if they are dropped in that black area which is the area of parent container.</p>

<p><a href="https://i.stack.imgur.com/ypqRf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ypqRf.png" alt="enter image description here"></a></p>

<p>Migrated from <a href="https://groups.google.com/d/msg/codenameone-discussions/QMVTT9109ck/4WyR_Yq-FgAJ" rel="nofollow noreferrer">this</a>.</p>