This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes awt container listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "awt container listeners" Watch "awt container listeners" New topic
Author

awt container listeners

kurian chacko
Greenhorn

Joined: Sep 28, 2008
Posts: 5
componentAdded(ContainerEvent)
componentRemoved(ContainerEvent)
What is the function of these two methods present in the container listener interface...under what circumstances can i use these two methods in any jfc application/applet app.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
no pro on this, but common sense tells me that these methods will be called whenever components are added or removed respectively from the container that you're listening to.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2154
    
    7
I second common sense.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38041
    
  22
If you read the documentation, you can verify whether common sense was correct
kurian chacko
Greenhorn

Joined: Sep 28, 2008
Posts: 5
thanks a ton for your common sense stuff for all you people....

The doc was handy for meeeeeeeee. It was pure common sense but i dont know how i forgot about the docs, but i always use the docs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: awt container listeners
 
Similar Threads
Container callback and inline methods
Still about AWTevent.
Help with response function
Finding All New Components
Event and Components