{
// Button that calls for popup
WebButton showPopup = new WebButton ( getButtonIcon ( way ) );
// Popup itself
WebButtonPopup popup = new WebButtonPopup ( showPopup, way );
// Sample popup content
WebLabel label = new WebLabel ( "Sample label", WebLabel.CENTER );
WebTextField field = new WebTextField ( "Sample field", 10 );
field.setHorizontalAlignment ( SwingConstants.CENTER );
GroupPanel content = new GroupPanel ( 5, false, label, field );
content.setMargin ( 15 );
// Setup popup content
popup.setContent ( content );
// Component focused by default
popup.setDefaultFocusComponent ( field );
return showPopup;
}