I want to place a component overlapping on top of another component; that is, have the two components next to each other in an X-AXIS BoxLayout, but then shift the right-hand component 30 pixels to the left.
Is there any way I can do this? I tried overriding calcPreferredSize() in the left-hand component and reducing the size it returns, but this also crops that component. Maybe there is a way of making the layout/ui manager think the left-hand component is, lets say, 50px when calculating where to lay everything out, but think its 100px when drawing it?
Any suggestions welcome
Thanks very much
Shai (not Almog!)