I have been developing a java application related to graphics . From my understanding everytime i use the repaint() method anywhere in the code , the overridden paintComponent is called . But i have also used repaint() inside the paintComponent itself .why is it not leading to infinite recursion ? the code works fine .I have been developing a java application relat