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!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL