Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT components.
|
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
Component.requestFocus(boolean temporary,
FocusEvent.Cause cause) |
Requests by the reason of
cause that this Component get
the input focus, and that this Component 's top-level ancestor
become the focused Window . |
void |
Component.requestFocus(FocusEvent.Cause cause) |
Requests by the reason of
cause that this Component get the input
focus, and that this Component's top-level ancestor become the
focused Window. |
boolean |
Component.requestFocusInWindow(FocusEvent.Cause cause) |
Requests by the reason of
cause that this Component get the input
focus, if this Component's top-level ancestor is already the focused
Window. |
Modifier and Type | Method | Description |
---|---|---|
FocusEvent.Cause |
FocusEvent.getCause() |
Returns the event cause.
|
static FocusEvent.Cause |
FocusEvent.Cause.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static FocusEvent.Cause[] |
FocusEvent.Cause.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor | Description |
---|---|
FocusEvent(Component source,
int id,
boolean temporary,
Component opposite,
FocusEvent.Cause cause) |
Constructs a
FocusEvent object with the
specified temporary state, opposite Component and the cause. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b143-1ubuntu1