@Deprecated
	protected long getWindowId(ComponentPeer peer) {
		try {
			Method m = peer.getClass().getMethod("getWindow");
			return (Long) m.invoke(peer);
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (NoSuchMethodException e) {
			e.printStackTrace();
		}
		return -1l;
	}