请问我的程序(使用SWT,平台是Eclipse)为什么在初次运行的时候没有显示出想要的带有单选框和复选框界面,而只是一个空白面板呢?另外我还想问下如何设置Shell的属性使其大小不可更改呢(如最大化最小化按钮失效,Shell大小不可变)?望高手指教,以下是程序源代码package DemoComposite;import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.layout.FillLayout;public class DemoComposite2
{
private Display display =null;
private Shell shell = null;  //  @jve:decl-index=0:visual-constraint="10,10"
private Composite composite1 = null;
private Composite composite2 = null;
private Button radioButton1 = null;
private Button radioButton2 = null;
private Button checkBox1 = null;
private Button checkBox2 = null; /**
 * This method initializes shell
 */
public DemoComposite2(){
createShell();
shell.open();
while (!shell.isDisposed()){
if(display.readAndDispatch())
display.sleep();

}
shell.dispose();
}
private void createShell()
{
display =new Display();
shell = new Shell(display);
shell.setText("容器演示");
createComposite1();
createComposite2();
shell.setSize(new Point(371, 211));
shell.setLayout(new FillLayout());
} /**
 * This method initializes composite1
 *
 */
private void createComposite1()
{
composite1 = new Composite(shell, SWT.NONE);
composite1.setLayout(new GridLayout());
composite1.setBackground(new Color(Display.getCurrent(), 236, 150, 216));
radioButton1 = new Button(composite1, SWT.RADIO);
radioButton1.setText("liu li");
radioButton2 = new Button(composite1, SWT.RADIO);
radioButton2.setText("Zhang li");
} /**
 * This method initializes composite2
 *
 */
private void createComposite2()
{
composite2 = new Composite(shell, SWT.NONE);
composite2.setLayout(new RowLayout(SWT.VERTICAL));
composite2.setBackground(new Color(Display.getCurrent(), 255, 255, 255));
checkBox2 = new Button(composite2, SWT.CHECK);
checkBox2.setText("Zhang li");
checkBox1 = new Button(composite2, SWT.CHECK);
checkBox1.setText("Liu li");
}
public static void main(String[] args)
{
new DemoComposite2();

}}