title: Opening a new Window with a Widget in GWT
body: <p>Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem.</p>
  
  <p><strong>Question:</strong> how to open a new window with a formpanel in side.</p>
  
  <p><strong>Context:</strong> i have an app that lists lots of items, i want someone to edit an entry, i want a new window to open so they can edit properties then hit save. A standard thing you find in a lot of applications.</p>
  
  <p><strong>Architecture:</strong>
  I have one client module called UI, it has a dozen classes that draw widgets and fill a main area when selected from a menu. I have a single html page called UI.html which has the  tag in the head. Thats it.</p>
  
  <p><strong>Options Ive Seen</strong></p>
  
  <ol>
  <li><p>Call <strong>Window.Open()</strong> but you need to define a html file. I dont have one. I can create an empty one but <strong>how do you inject a widget in to it ?</strong></p></li>
  <li><p>use <strong>jsni $wnd</strong> to create a new window and get a reference to it. But how do i <strong>inject a form panel into it ??</strong></p></li>
  <li><p>use a <strong>popuppanel</strong>. They look sucky - plus if opening a window through JS is quite simple i would expect it to be in gwt.</p></li>
  </ol>
  
  <p>Maybe im miss understanding how to use GWT i dont know.</p>
  
  <p>Any help would be appreciated</p>
  
  <p>Thanks</p>