aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 2226
    
    8
I second common sense.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
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.
 
 
subject: awt container listeners