Personally I would build a custom layout manager for this and just use components. You can style a button to look like a tooth and then enjoy all the benefits of working with components.
There is a sample of creating your own layout manager in the developer guide and I recently did something for maps too:
https://www.codenameone.com/blog/tip-map-layout-manager.htmlYou can also use the GUI builder and layered layout to position things, I'm not sure which of the two options would be less challenging.
If I would build a layout manager I'd just determine the position/size of each tooth in a virtual coordinate space and then scale the coordinates based on the layout (internally that's roughly how layered layout works) but you can simplify this a lot by making the constraints the actual tooth name when you add the component.