Well, as I said. It happened by accident. So it is not really a solution. The change, that did the trick, was in org.xith3d.ui.hud.base.WidgetAssembler. This class assembles a Widget from existing ones. It holds a TransformGroup that is added to the Widget’s main group. A Widget’s background Image is added to this WidgetAssembler. The WidgetAssembler’s TransformGroup was added to to Widget’s group at initializing phase, which is later than the construction phase. This delay was not necessary in this case, so I decided to do it at construction time.
I moved this line:
ownerGroup.addChild(this.transformGroup);
from the init method to the constructor. And voila, all Labels looked just fine. So I guess it has something to do with the order of the HUD system’s TransformGroups. But I really don’t know, why this is the case.
I hope, this helps you. Maybe you can see, why this happens…
Marvin