Adding Panel to New Window

Hi.
I wanted to display a new WIndow and that Window should contain a Panel. Is that possible? If yes, then how do I do that?

Thanks in advance,
S

panel.setContent(…); // Whatever you want to display in the panel
window.setContent(panel);

The Window is basically a more specific type of Panel, so you should just be able to add your content directly to the Window instead of wrapping it in an additional Panel.