You don't need a backbuffer with a JFRame. If you say "setDoubleBuffered(true)" ist will be doublebuffered.
If you want to paint onto the JFrame, take another component like JComponent extend it and override the "public void paintComponent(Graphcis g)" method.
If you want to add components to a JFrame, use the ContentPane of the JFrame to add. like "getContentPane().add()"
The JComponents are mostly buffered.

Code:
class MyFrame extends JFrame {

public static void main(String[] args){
  new MyFrame();
}

public MyFrame(){
  setSize(800, 600);
  setDefaultClosingOperation(true)
  //setDoublebuffered(true);
  setVisible(true);
}

}



I hope you are using eclipse. Try to goole about "Java Swing".

Last edited by TheThinker; 08/18/09 16:29.