This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
Joined: Nov 22, 2000
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).]
Joined: Nov 07, 2000
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