Win32DrawingSurface wds = (Win32DrawingSurface)surfaceInfo.getSurface(); int hWnd = wds.getHWnd();
X11DrawingSurface wds = (X11DrawingSurface)surfaceInfo.getSurface(); int hWnd = wds.getDrawable();
        public int getWindowID()           {          DrawingSurfaceInfo surfaceInfo =            ((DrawingSurface)this.getPeer()).getDrawingSurfaceInfo();          surfaceInfo.lock();          Win32DrawingSurface wds =            (Win32DrawingSurface)surfaceInfo.getSurface();          int hWnd = wds.getHWnd();          surfaceInfo.unlock();          return hWnd;          }