<?xml version="1.0"?>
<!DOCTYPE window PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<window id="YourApplication_window"
        windowtype="YourApplication"
        title="YourApplication"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<vbox flex="1">
    <hbox>
        <label value="box 1"/>
        <textbox id="textbox"/>
    </hbox>
    <hbox id="hbox2">
        <label value="box 2"/>
    </hbox>
    <button label="Move It" onclick="document.getElementById('hbox2').appendChild(document.getElementById('textbox'));"/>
</vbox>
</window>

