public static Button createPushButton(Composite parent, String label,
			Image image)
	{
		Button button = new Button(parent, SWT.PUSH);
		button.setFont(parent.getFont());
		if (image != null)
		{
			button.setImage(image);
		}
		if (label != null)
		{
			button.setText(label);
		}
		GridData gd = new GridData();
		button.setLayoutData(gd);

		return button;
	}
public static Button createPushButton ( Composite parent , String label , Image image ) { Button button = new Button ( parent , SWT . PUSH ) ; button . setFont ( parent . getFont ( ) ) ; if ( image != null ) { button . setImage ( image ) ; } if ( label != null ) { button . setText ( label ) ; } GridData gd = new GridData ( ) ; button . setLayoutData ( gd ) ; return button ; }
Creates and returns a new push button with the given label and/or image.

@param parent
parent control
@param label
button label or <code>null</code>
@param image
image of <code>null</code>
@return a new push button