jComponent.getContentPane().setLayout(new SwingFrameLayout(this));
jComponent.getContentPane().setLayout(new SwingContainerLayout(this));
	public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame awtFrame) {        super(toolkit, awtFrame, new SwingFrame(awtFrame));        jComponent.initialize(this);		SwingToolkit.copyAwtProperties(awtFrame, this.jComponent);        jComponent.getContentPane().setLayout(new SwingFrameLayout(this));        jComponent.setLocation(awtFrame.getLocation());        jComponent.setSize(awtFrame.getSize());		setResizable(awtFrame.isResizable());        jComponent.setIconifiable(true);        jComponent.setMaximizable(true);        jComponent.setClosable(true);		try {            jComponent.setIcon(awtFrame.getState() == Frame.ICONIFIED);		} catch (PropertyVetoException x) {		}		setState(awtFrame.getState());        jComponent.setTitle(awtFrame.getTitle());		//frame.setIconImage(awtFrame.getIconImage());		setMenuBar(awtFrame.getMenuBar());        desktopPane.add(jComponent);        desktopPane.setSelectedFrame(jComponent);        jComponent.toFront();        desktopPane.doLayout();	}