import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class CompositeExample { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Composite composite = new Composite(shell, SWT.NONE); composite.setSize(200, 200); shell.open(); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } }In this example, a new `Composite` container is created and its size is set to 200x200 pixels using `setSize()` method. The `Shell` is then opened and the main event loop of the application is started. This example uses the `org.eclipse.swt` package library, which is a part of the Eclipse platform and provides the UI toolkit for building desktop applications in Java.