// Todo auto-generated method stub
// Create a panel class
// Composite = new composite (shell, SWT. None );
// Panel Style
// SWT. None No border
// SWT. Border panel without Borders
// SWT. no_radio_group pair radio button
// Common methods of panel classes
// Obtain the method control [] getchildren () for all controls in the panel ();
// Obtain the parent panel compposite getparent () of the panel ()
// Set the panel layout setlayout (layout)
// Refresh the Layout
// Selected Style Constant
// SWT. shadow_etched_in SWT. shadow_etched_out
// SWT. shadow_in shadow_out SWT. shdow_none
Display display = display. getdefault ();
Shell shell = new shell (Display );
Shell. setlayout (New filllayout (SWT. Vertical ));
// Create group dialog box
Group = new group (shell, SWT. None );
Group. settext ("group box"); // set the title
Group. setlayout (New rowlayout (); // sets the layout.
// Add button
For (INT I = 0; I <4; I ++)
{
Button button = new button (group, SWT. Push );
Button. settext ("button" + I );
}
Shell. open ();
While (! Shell. isdisposed ())
{
If (! Display. readanddispatch ())
{
Display. Sleep ();
}
}
Display. Dispose ();
}