Hi Norm,
Thanks for your help with this,
I have ended up going
protected void createContents() {
shell = new Shell();
shell.setSize(260, 260);
shell.setText("SWT Application");
input = new Text(shell, SWT.BORDER | SWT.RIGHT);
input.setBounds(10, 10, 224, 21);
Button bt1 = new Button(shell, SWT.NONE);
bt1.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
String enterNumber = input.getText() + bt1.getText();
input.setText(enterNumber);
}
});
i have a feeling this is showing a string so wil need to turn it into and integer maybe anyway not really what i was original intending but working now.