Use a Dialog bean
to provide a custom dialog. A dialog is typically used to display or
gather information for a single purpose.
The Dialog bean contains a ContentsPane bean, the default client component, where you place other visual components. You can replace the default client with another container component.
Composing a window
Window beans
Beans for visual composition
Sun's Dialog bean documentation