• Post Reply Bookmark Topic Watch Topic
  • New Topic

What's the difference between a window being deactivated and losing focus?  RSS feed

 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a class the extends JFrame and implements WindowListener and implements WindowFocusListener.

What is the difference between:

windowDeactivated() & windowLostFocus()

and

windowActivated() & windowGainedFocus()

??
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this part of the Java Tutorial first, and see whether that helps.
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I should probably go through the entire Swing tutorial (and the demo SwingSet2).

Kaydell
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!