I have a custom control which have 2 lables and a Text item
The following is the code
public class SITrial extends Composite {
private Text text;
public SITrial(Composite parent, int style) {
super(parent, style);
final Composite composite = new Composite(this, SWT.NONE);
composite.setBounds(15, 15, 170, 55);
final Label label = new Label(composite, SWT.NONE);
label.setBounds(5, 5, 50, 15);
label.setText("Icon");
final Label label_1 = new Label(composite, SWT.NONE);
label_1.setBounds(60, 5, 80, 15);
label_1.setText("Name");
text = new Text(composite, SWT.BORDER);
text.setText("Text");
text.setBounds(5, 30, 160, 20);
//
}
public void dispose() {
super.dispose();
}
protected void checkSubclass() {
}
}
When I lay this custom composite on the designer in my test app, the controls inside it does not show up.