reparent


Description:

public void reparent (Widget new_parent)

Moves a widget from one Container to another, handling reference count issues to avoid destroying the widget.

Note:

Use remove and add.

Parameters:

this

a Widget

new_parent

a Container to move the widget into