FileDocCategorySizeDatePackage
RowComposite.javaAPI DocExample941Sun Oct 31 08:47:30 GMT 2004None

RowComposite

public class RowComposite extends Composite

Fields Summary
final Button
okBtn
final Button
cancelBtn
Constructors Summary
public RowComposite(Composite c)

        super(c, SWT.NO_FOCUS);
        RowLayout rl = new RowLayout();
        rl.wrap = false;
        rl.pack = false;
        this.setLayout(rl);
        okBtn = new Button(this, SWT.BORDER | SWT.PUSH);
        okBtn.setText("OK");
        okBtn.setSize(30, 20);
        cancelBtn = new Button(this, SWT.BORDER | SWT.PUSH);
        cancelBtn.setText("Cancel");
        cancelBtn.setSize(30, 20);    
        cancelBtn.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                System.out.println("Cancel was clicked");
            }
        });
    
Methods Summary