This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes What's the difference between a window being deactivated and losing focus? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What Watch "What New topic
Author

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

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

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

Joined: Oct 13, 2005
Posts: 44608
    
  34
Try this part of the Java Tutorial first, and see whether that helps.
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Thanks. I should probably go through the entire Swing tutorial (and the demo SwingSet2).

Kaydell
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's the difference between a window being deactivated and losing focus?
 
It's not a secret anymore!