This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

awt container listeners  RSS feed

 
kurian chacko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I second common sense.
 
Campbell Ritchie
Sheriff
Posts: 55333
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you read the documentation, you can verify whether common sense was correct
 
kurian chacko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!