• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kaydell Leavitt
Ranch Hand
Posts: 689
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
Sheriff
Pie
Posts: 49472
64
  • 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: 689
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic