@Override public void displayChanged(){
  updateGC();
}

@ Override public void displayChanged ( ) { updateGC ( ) ; }
from the displaychangedlistener interface . this method handles a display change - either when the display settings are changed , or when the window has been dragged onto a different display . called after a change in the display mode . this event triggers replacing the surfacedata object ( since that object reflects the current display depth information , which has just changed ) .
