Hey guys, I was coding animation, stuck at 22nd tutorial of  java game development. All worked perfect before I added the better screen class, I mean the pictures did change. However when I came to Buffer things, the screen went black, no images, no animation. 
But if I get rid of the bold codes in setFullScreen and update methods, things seem to work well again.

==========================
//make frame full screen
public void setFullScreen(DisplayMode dm){

JFrame f = new JFrame();
f.setUndecorated(true);
f.setResizable(false);
f.setIgnoreRepaint(true);
vc.setFullScreenWindow(f);

if(dm != null && vc.isDisplayChangeSupported()){

try{

vc.setDisplayMode(dm);
}catch(Exception e){

}
}

//f.createBufferStrategy(2);
}

//update display
public void update(){

Window w = vc.getFullScreenWindow();
if(w != null){

BufferStrategy s = w.getBufferStrategy();
/*if(!s.contentsLost()){

s.show();
}*/

}
}
===============================

And I am not sure what the createCompatibleImage method is used for, nowhere else ever uses this method.

Can anybody help? I am dying alone...