Composite container = new Composite(parent, SWT.NONE); container.setLayout(new FormLayout()); { m_FeaturedDataComposite = new FeaturedDataComposite(container, SWT.NONE, this, m_Listeners, Display.getDefault().getSystemColor(SWT.COLOR_BLACK)); m_FeaturedDataComposite.setTopOffset(20); m_FeaturedDataComposite.setRightOffset(20); } { m_LayersListComposite = new LayerListComposite(container, SWT.NONE, this, this, this, m_Listeners); } { Composite globeContainer = new Composite(container, SWT.EMBEDDED | SWT.DOUBLE_BUFFERED); FormData formData = new FormData(); formData.left = new FormAttachment(0); formData.right = new FormAttachment(100); formData.top = new FormAttachment(0); formData.bottom = new FormAttachment(100); globeContainer.setLayoutData(formData); globeContainer.setLayout(new FillLayout()); java.awt.Frame worldFrame = SWT_AWT.new_Frame(globeContainer); // This is to stop the AWT canvas from flickering... // needed for placing SWT controls on top of AWT controls. try { System.setProperty("sun.awt.noerasebackground","true"); } catch (NoSuchMethodError error) {} Panel panel = new Panel(); panel.setLayout(new BorderLayout()); panel.setBounds(0, 0, worldFrame.getSize().width, worldFrame.getSize().height); panel.add((WorldWindowGLCanvas)m_Globe, BorderLayout.CENTER); m_StatusBar = new StatusBarNative(); ((StatusBar)m_StatusBar).setEventSource(m_Globe); panel.add(m_StatusBar, BorderLayout.PAGE_END); worldFrame.add(panel); }