Fork us on GitHub

Edit UDID in Component Inspector

It's the small things that make debugging easier
Post Image

Edit UDID in Component Inspector

One of the hard things to debug in Codename One is UIID/Padding/Margin placement which is often tricky to get "just right". I use the Component Inspector quite a lot to review a layout that misbehaves and gain further insight into what’s happening in runtime.

You can gain insight into the Codename One component hierarchy by running the simulator and selecting the SimulateComponent Inspector menu option. This will present the component hierarchy as a navigatable tree

Up until now the Component Inspector was a "read only" tool, with the coming update it will gain the ability to edit the UIID field!

This would make some things remarkably trivial as you could find if that pesky extra space is coming from the theme by just changing the UIID to Container. It also helps identify components more easily within the inspector and see under the hood of Codename One (e.g. in the Toolbar area).

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.