aspose file tools*
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 Java 8 in Action this week in the Java 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: 688

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: 36599
    
  16
Try this part of the Java Tutorial first, and see whether that helps.
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

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?
 
Similar Threads
what is the difference between the ArrayList and Vector?
thread
Simple thread question
keyword
Difference between List and ArrayLists