All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.Frame

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

public class Frame
extends Frame
A Frame is a top-level window with a title and a border. The default layout for a frame 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.Frame.

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:
Frame, HAS_FOCUS_BUG

Constructor Index

 o Frame()
Constructs a new instance of Frame that is initially invisible.
 o Frame(String)
Constructs a new, initially invisible Frame object with the specified title.

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 Frame
 public Frame()
Constructs a new instance of Frame that is initially invisible.

 o Frame
 public Frame(String title)
Constructs a new, initially invisible Frame object with the specified title.

Parameters:
title - the title for the 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