flicker in canvas, but not in component
I wrote a new awt component and derived it from java.awt.Component. I overwrote
update(Graphics) (which now simply calls paint(Graphics)) in order to avoid
flicker. The component has double buffering.
Now I changed the ancester from java.awt.Component to java.awt.Canvas and
now it flickers when it is in a ScrollPane and the user scrolls. This is
not the case when derived from Component.
What can I do? I need the component to be a child of Canvas!
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center