| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I've found that Mac-Java's Swing double buffering is terrible. I had to explicitly double buffer a component to get quick repaints. Even then, if you resize the component, the screen goes blue and white for a second or so before it correctly repaints again. I entered a bug to Apple on it._______________________________________________
See the difference for yourself. Use the following JDesktopPane and add an internal window. Move around the internal window to force repaints.
In the first version, there is no explicit double buffering and the repaint action is unacceptably slow. It takes up to 2 seconds on my G4/400 with the screen maximized to move the JInternalFrame from upper left to lower right.
On Windows and Linux, I have no problem with this component and its paint speed.
In the second version, moving the JInternalFrame is reasonably smooth. However, maximizing creates a disastrous screen paint for about one second before it recreates and repaints the background. Repeated maximizing and restoring will show the flakiness of MRJs graphics through a painful variety of poor repaints.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.