d = new Display();
s = new Shell(d);
s.setSize(250,250);
s.setImage(new Image(d, "c:\\icons\\JavaCup.ico"));
s.setText("A Shell Composite Example");
final GroupExample ge1 = new GroupExample(s, SWT.SHADOW_ETCHED_IN,
"Option Group One" );
ge1.setLocation(10,10);
final GroupExample ge2 = new GroupExample(s, SWT.SHADOW_ETCHED_IN,
"Option Group Two" );
ge2.setLocation(100,100);
s.open();
while(!s.isDisposed()){
if(!d.readAndDispatch())
d.sleep();
}
d.dispose();