Showing posts with label FocusEvent Class. Show all posts
Showing posts with label FocusEvent Class. Show all posts

Wednesday, 5 February 2014

Event classes:The FocusEvent Class

 FocusEvent :gains or loses input focus.......

The FocusEvent Class


         A FocusEvent is generated when a component gains or loses input focus. 


Integer constants :

  • FOCUS_GAINED 
  • FOCUS_LOST

 FocusEvent Constructor:

FocusEvent is a subclass of ComponentEvent and has these constructors:


  • FocusEvent(Componentsrc, int type)
  • FocusEvent(Componentsrc, int type, boolean temporaryFlag)
  • FocusEvent(Componentsrc, int type, boolean temporaryFlag, Component other)