public void dispose ()

Releases system resources currently consumed by this BufferStrategy and removes it from the associated Component. After invoking this method, getBufferStrategy will return null. Trying to use a BufferStrategy after it has been disposed will result in undefined behavior.

See also:
java.awt.Window.createBufferStrategy, java.awt.Canvas.createBufferStrategy, java.awt.Window.getBufferStrategy, java.awt.Canvas.getBufferStrategy

Since:  1.6