APIdia Launch Partner
Top Description Methods
java.awt.peer

public Interface KeyboardFocusManagerPeer

Known Direct Implementers
sun.awt.KeyboardFocusManagerPeerImpl
Imports
java.awt.Component, .KeyboardFocusManager, .Window

The native peer interface for KeyboardFocusManager.

Method Summary

Modifier and TypeMethod and Description
public void
clearGlobalFocusOwner(Window
the active window
activeWindow
)

Clears the current global focus owner.

public Window

Returns:

the currently focused window
getCurrentFocusedWindow
()

Returns the currently focused window.

public Component

Returns:

the component that currently owns the input focus
getCurrentFocusOwner
()

Returns the component that currently owns the input focus.

public void
setCurrentFocusedWindow(Window
the window that should become the focused window
win
)

Sets the window that should become the focused window.

public void
setCurrentFocusOwner(Component
the component to become the focus owner
comp
)

Sets the component that should become the focus owner.

Method Detail

clearGlobalFocusOwnerback to summary
public void clearGlobalFocusOwner(Window activeWindow)

Clears the current global focus owner.

Parameters
activeWindow:Window

the active window

See Also
KeyboardFocusManager#clearGlobalFocusOwner()
getCurrentFocusedWindowback to summary
public Window getCurrentFocusedWindow()

Returns the currently focused window.

Returns:Window

the currently focused window

See Also
KeyboardFocusManager#getNativeFocusedWindow()
getCurrentFocusOwnerback to summary
public Component getCurrentFocusOwner()

Returns the component that currently owns the input focus.

Returns:Component

the component that currently owns the input focus

See Also
KeyboardFocusManager#getNativeFocusOwner()
setCurrentFocusedWindowback to summary
public void setCurrentFocusedWindow(Window win)

Sets the window that should become the focused window.

Parameters
win:Window

the window that should become the focused window

setCurrentFocusOwnerback to summary
public void setCurrentFocusOwner(Component comp)

Sets the component that should become the focus owner.

Parameters
comp:Component

the component to become the focus owner

See Also
KeyboardFocusManager#setNativeFocusOwner(Component)