public void setwnd() {
		GraphicsDevice dev = getGraphicsConfiguration().getDevice();
		if (prefs == null)
			return;
		try {
			dev.setDisplayMode(prefs);
			dev.setFullScreenWindow(null);
			setVisible(false);
			dispose();
			setUndecorated(false);
			setVisible(true);
		} catch (Exception e) {
			throw (new RuntimeException(e));
		}
		prefs = null;
	}