title: Cyclic repaint issue
body: <p>I got a pretty big problem. I am writing a GUI with following structure:</p>
  
  <p><strong>MainFrame ( MainPanel ( JScrollPane ( ContentPanel ( Content1,Content2,Content3 ) ) ) )</strong></p>
  
  <p>There is also a GlassPane over the MainFrame. There is a Timer in the GlassPane Class, which ticks about every 100ms. </p>
  
  <p>This Timer is updating the value of a JSlider of Content1. The JSlider also has a change listener which gives the current X-Coordinate of the thumb to the GlassPane. These coordinate is used to draw a line every tick, if it changed. This line goes over Content1,Content2 and Content3.</p>
  
  <p>I am currently trying to update these contents via this.repaint(), MainPanel.repaint(), this.repaint(Rectangle), MainPanel.repaint(Rectangle). </p>
  
  <p>Unfortunately all these Methods (even the repaint(Rectangle) o0 ) call the  paintComponent Methods of Content1, Content2 and Content3, what somehow creates a cyclic repaint. I cannot explain this cycle and am pretty desperate already. I would be very thankful for any help or suggestion.</p>
  
  <p>I would really like to give you some code too, but its so much. And I dont really know what would be useful.</p>
  
  <p>Greets,
  Corn</p>