• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

paintContainerChildren()

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, what class does paintContainerChildren() belong to? And what does it do?
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't recall seeing this particular method in the awt api but there is a method called Component.paintAll() that is used to make sure that all of the sub-components of a container get repainted. I believe it is called automatically in most cases but sometimes (i.e. when you create a custom component, for instance) you may want to call it directly.
Sean
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How embarrassing! This is a third party method. Goes like

added UBB CODE tags to help make the code more readable
[This message has been edited by Frank Carver (edited January 02, 2001).]
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't sweat it. I think we've all done that before - I know I have. It looks as though that's exactly what this method is doing. Simply looping through all of the components within the container passed to the method and making sure that the child components are being painted. If you really want to see what it's doing within the entire application, try changing or reducing it's functionallity and see what happens. Don't forget to make a backup though (I think we've all done that too! )
Sean
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic