if (updateCursorLoc) { cursorActive = cursorActive ? false:true;
if (cursorActive) {
   private void updateCursorLoc() {      if (updateCursorLoc) {         cursorActive = cursorActive ? false:true;         int row = getRow(lastPos);         int col = getCol(lastPos);         bi.drawCursor(this,row,col,                           fmWidth,fmHeight,                           insertMode, crossHair,                           cursorSize,colorCursor,                           colorBg,colorWhite,                           font);         cursorActive = false;      }   }