EVALUATION
This is happening because of the performance tweak put in JComponent. When it is determining who is going to get a paint it uses the method isOptimizedDrawingEnabled. JViewport subclasses this and returns false, unfortunately JComponent will only honor this if the component has more than one child, which is not true for JViewport.
We therefore need to remove the check for more than one child in JComponent and it should work.
sky 1998-05-29
|
PUBLIC COMMENTS
This is happening because of the performance tweak put in JComponent. When it is determining who is going to get a paint it uses the method isOptimizedDrawingEnabled. JViewport subclasses this and returns false, unfortunately JComponent will only honor this if the component has more than one child, which is not true for JViewport.
We therefore need to remove the check for more than one child in JComponent and it should work.
sky 1998-05-29
|