PDA

View Full Version : relayout with new AbsoluteData position



bhomass
5 Feb 2010, 11:55 PM
I know how to set absolute position when adding a component with AbsoluteData

container.add(content, new AbsoluteData(0, 20));

But how would you modify the absoluteData position to say (10, 40) and re-layout?

bhomass
6 Feb 2010, 12:17 AM
I got it.

container.setLayoutData(component, new AbsoluteData(newx, newy) worked.