@Override public void setSize() { setSize( shell ); // sets shell location and preferred size shell.setMinimumSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); shell.setSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); // force initial size }
@Override public void setSize() { setSize( shell ); // sets shell location and preferred size shell.setMinimumSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); shell.setSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); // force initial size }
@Override public void setSize() { setSize( shell ); // sets shell location and preferred size shell.setMinimumSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); shell.setSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); // force initial size }
@Override public void setSize() { setSize( shell ); // sets shell location and preferred size shell.setMinimumSize( startingDimensions ); shell.setSize( startingDimensions ); // force initial size }
/** * Create contents of the dialog. */ protected void createContents() { shell.setMinimumSize(minWidth, minHeight); shell.pack(); setMiddle(); }
dialog.setMinimumSize( 470, 580 );
super.createDialog( title != null ? title : StringUtils.capitalize( state ), getRepoURL( clientPath.toString() ), OPTIONS, LOGO ); super.dialog.setMinimumSize( 545, 458 );
private void open( final Display display ) { shell.pack(); if ( width > 0 ) { final int height = shell.computeSize( width, SWT.DEFAULT ).y; // for some reason the actual width and minimum width are smaller than what is requested - add the // SHELL_WIDTH_OFFSET to get the desired size shell.setMinimumSize( width + SHELL_WIDTH_OFFSET, height ); shell.setSize( width + SHELL_WIDTH_OFFSET, height ); } shell.open(); while ( !shell.isDisposed() ) { if ( !display.readAndDispatch() ) { display.sleep(); } } }
private void open( final Display display ) { shell.pack(); final int height = shell.computeSize( SHELL_WIDTH, SWT.DEFAULT ).y; // for some reason the actual width and minimum width are smaller than what is requested - add the // SHELL_WIDTH_OFFSET to get the desired size shell.setMinimumSize( SHELL_WIDTH + BaseDialog.SHELL_WIDTH_OFFSET, height ); shell.setSize( SHELL_WIDTH + BaseDialog.SHELL_WIDTH_OFFSET, height ); getData( meta ); meta.setChanged( changed ); shell.open(); while ( !shell.isDisposed() ) { if ( !display.readAndDispatch() ) { display.sleep(); } } }
@Override protected void createAdditionalTabs() { // Set the height so the topics table has approximately 5 rows shell.setMinimumSize( 527, 600 ); securityLayout = new MqttDialogSecurityLayout( props, wTabFolder, lsMod, transMeta, mqttMeta.getSslConfig(), mqttMeta.isUseSsl() ); securityLayout.buildSecurityTab(); buildFieldsTab(); optionsLayout = new MqttDialogOptionsLayout( props, wTabFolder, lsMod, transMeta, mqttMeta.retrieveOptions() ); optionsLayout.buildTab(); }
shell.setMinimumSize( this.width + BaseDialog.SHELL_WIDTH_OFFSET, height ); shell.setSize( this.width + BaseDialog.SHELL_WIDTH_OFFSET, height );
shell.setMinimumSize( 400, 520 ); setShellImage( shell, input );
shell.setMinimumSize( shell.getSize() ); wName.setSelection( 0, wName.getText().length() );
props.setLook( shell ); setShellImage( shell, meta ); shell.setMinimumSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT ); shell.setText( getString( PKG, "MQTTProducerDialog.Shell.Title" ) );
props.setLook( shell ); setShellImage( shell, meta ); shell.setMinimumSize( 527, 622 );
shell.setMinimumSize( shell.getSize() );
props.setLook( shell ); setShellImage( shell, meta ); shell.setMinimumSize( SHELL_MIN_WIDTH, SHELL_MIN_HEIGHT );
shell.setMinimumSize( 515, 408 );
public void controlResized(ControlEvent e) { shell.layout(); Point size = shell.getSize(); Point minSize = getMinSize(); shell.setMinimumSize(minSize); int width = Math.max(size.x,minSize.x); int height = Math.max(size.y,minSize.y); if(width!=size.x || height!=size.y) { shell.setSize(width,height); } } });
private void adjustSize(boolean expanded) { int minWidth = convertHorizontalDLUsToPixels(MIN_WIDTH); int minHeight = convertVerticalDLUsToPixels(expanded ? MIN_HEIGHT_WITH_ANCESTOR : MIN_HEIGHT_WITHOUT_ANCESTOR); getShell().setMinimumSize(minWidth, minHeight); }