myButton.addActionListener ( new ActionListener ()
{
@Override
public void actionPerformed ( final ActionEvent e )
{
final WebDialog myDialog = new WebDialog ( owner );
myDialog.setLanguage ( "my.dialog.title" );
WindowFollowAdapter.install ( myDialog, owner );
final MyLabel myText = new MyLabel ();
myText.setLanguage ( "my.dialog.text" );
myDialog.add ( myText );
myDialog.setSize ( 300, 100 );
myDialog.setLocationRelativeTo ( myButton );
myDialog.setVisible ( true );
}
} );
return new GroupPanel ( myButton );
}