1.1 api compatibility

Peter C. Mehlitz kaffe@rufus.w3.org
Fri, 7 Aug 1998 20:17:32 +0200


On Thu, 06 Aug 1998, Bart Locanthi wrote:
>..function getFocusOwner() not found in class java.awt.Window
..

That was indeed missing. Can be implemented like this:

Component getFocusOwner () {
  return (this == AWTEvent.activeWindow) ? AWTEvent.keyTgt : null;
}

-- Peter