Community
Participate
Working Groups
createWidget();
setInitialSize();
}
/**
* Constructs a new instance of this class. This is equivalent
* to calling <code>Shell((Display) null)</code>.
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*
* @since 1.3
*/
public Shell() {
public void open() {
checkWidget();
// Order of setActiveShell/bringToTop/setVisible is crucial
display.setActiveShell( this );
bringToTop();
// Order of setVisible/setActive is crucial: see isVisible-check in
// Shell#setActive()
setVisible( true );
if( !restoreFocus() && !traverseGroup( true ) ) {
setFocus();