public class FocusEvent extends AWTEvent
ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED
Constructor and Description |
---|
FocusEvent(int id_,
Component source_)
Create a new FocusEvent.
|
FocusEvent(int id_,
Component source_,
boolean temporary,
Component opposite) |
Modifier and Type | Method and Description |
---|---|
Component |
getOppositeComponent() |
boolean |
isTemporary() |
java.lang.String |
toString() |
public FocusEvent(int id_, Component source_)
id_
- The event identifier. Must be FOCUS_LOST or FOCUS_GAINED.source_
- The component to which the event must be delivered.public Component getOppositeComponent()
public boolean isTemporary()
public java.lang.String toString()
toString
in class java.util.EventObject