Cacheable
interface, and override the paint method to something like: public void paint(Graphics g) { cache.paintComponent(g); paintChildren(g); }Also, the components need to call
cache.invalidate()
should the component need a proper redraw. Size changes are automatically handled.
|
|