Abstract Window Toolkit (AWT) Question:

What is the relationship between clipping and repainting?

AWT Interview Question
AWT Interview Question

Answer:

When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.


Previous QuestionNext Question
How the Canvas class and the Graphics class are related?When should the method invokeLater() be used?