Java Code Examples for javax.swing.JComponent.setDoubleBuffered()

The following are Jave code examples for showing how to use setDoubleBuffered() of the javax.swing.JComponent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: rapidminer   File: PlotterAdapter.java   View Source Code Vote up 5 votes
@Override
public void render(Graphics graphics, int width, int height) {
	JComponent renderComponent = getRenderComponent();
	renderComponent.setSize(width, height);
	renderComponent.setDoubleBuffered(false);
	renderComponent.paint(graphics);
	renderComponent.setDoubleBuffered(true);
}