All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.Window

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----jp.kyasu.awt.Window

public class Window
extends Window
A Window object is a top-level window with no borders and no menubar. It could be used to implement a pop-up menu. The default layout for a window is BorderLayout.

If the JDK has the sun.awt.windows.WWindowPeer#getFocusPeer() bug (the JDK for Windows 95/NT version 1.1.4 or before), an application that uses the jp.kyasu.awt package should use this class instead of java.awt.Window.

Because of this bug, if a lightwight component is focus traversable, an application will be hung up.

Version:
12 Nov 1997
Author:
Kazuki YASUMATSU
See Also:
Window, HAS_FOCUS_BUG

Constructor Index

 o Window(Frame)
Constructs a new invisible window.

Method Index

 o getFocusOwner()
Returns the child component of this Window which has focus if and only if this Window is active.
 o update(Graphics)
Updates this component.

Constructors

 o Window
 public Window(Frame parent)
Constructs a new invisible window.

The window is not initially visible. Call the show method to cause the window to become visible.

Parameters:
parent - the main application frame.

Methods

 o update
 public void update(Graphics g)
Updates this component.

Overrides:
update in class Container
 o getFocusOwner
 public Component getFocusOwner()
Returns the child component of this Window which has focus if and only if this Window is active.

Returns:
the component with focus, or null if no children have focus assigned to them.
Overrides:
getFocusOwner in class Window
See Also:
HAS_FOCUS_BUG

All Packages  Class Hierarchy  This Package  Previous  Next  Index