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