Drag_Drop

52 views
Skip to first unread message

Amine

unread,
Oct 15, 2020, 6:13:22 AM10/15/20
to CodenameOne Discussions
Hi,
I want to set container position X,Y in a form and allow drag in to it like in the attached image.
My big problem here is to set the container position folowing a random X,Y?
Kind regards,
IDE: NetBeans
Drag_Drop.png

Shai Almog

unread,
Oct 16, 2020, 1:29:56 AM10/16/20
to CodenameOne Discussions
Hi,
The layout manager determines the location/size of the components. If you want to control the exact location you can build your own layout manager and decide where you want components to "go". This isn't too hard, you can just subclass the Layout class and implement the applicable methods.
Reply all
Reply to author
Forward
0 new messages