- 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: 856
Latest pastes
1 days ago
1 days ago
2 days ago
4 days ago
5 days ago