Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java double buffering jpanel

public void paint(Graphics g){
  	Image imm = createImage(this.getWidth() - getInsets().left, this.getHeight() getInsets().top);
  	Graphics gImm = imm.getGraphics();
  	//DRAW ON gImm
	g.drawImage(imm, getInsets().left, getInsets().top, this);
}
 
PREVIOUS NEXT
Tagged: #java #double #buffering #jpanel
ADD COMMENT
Topic
Name
9+9 =