在我的例子中,我有一个SashForm的两个child,但这个问题适用于所有Composite。classMainWindow{Sashformsashform;Treechild1=null;Tablechild2=null;MainWindow(Shellshell){sashform=newSashForm(shell,SWT.NONE);}//NotcalledfromconstructorbecauseitneedsdatanotavailableatthattimevoidCreateFirstChild(){...Treechild1=newTree(sashform,S