扫一扫
分享文章到微信

扫一扫
关注官方公众号
至顶头条

 public class TestComposite extends Composite ...{
public class TestComposite extends Composite ...{
 private Text text;
    private Text text;
 /** *//**
    /** *//** * Create the composite
     * Create the composite * @param parent
     * @param parent * @param style
     * @param style */
     */
 public TestComposite(Composite parent, int style) ...{
    public TestComposite(Composite parent, int style) ...{ super(parent, style);
        super(parent, style); setLayout(new GridLayout());
        setLayout(new GridLayout()); createArea(this);
        createArea(this); }
    }
 private void createArea(Composite parent)...{
    private void createArea(Composite parent)...{ text = new Text(this, SWT.BORDER);
        text = new Text(this, SWT.BORDER); text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
        text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
 final Button button = new Button(this, SWT.NONE);
        final Button button = new Button(this, SWT.NONE); button.setText("button");
        button.setText("button"); }
    } 
     @Override
    @Override
 public void dispose() ...{
    public void dispose() ...{ super.dispose();
        super.dispose();如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。