This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • 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
Posts: 48642
56
  • 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