- public void update(Graphics g) {
- if (dbImage == null) {
- dbImage = createImage(this.getSize().width, this.getSize().height);
- dbg = dbImage.getGraphics();
- }
- dbg.setColor(getBackground());
- dbg.fillRect(0, 0, this.getSize().width, this.getSize().height);
- dbg.setColor(getForeground());
- paint(dbg);
- g.drawImage(dbImage, 0, 0, this);
- }
- private Image dbImage;
- private Graphics dbg;
Undefined
By: Guest | Date: Jul 1 2010 10:29 | Format: None | Expires: never | Size: 413 B | Hits: 859
Latest pastes
57 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago