public void changeSelectionByOffset(int offset,boolean extend){
  offset=Math.max(0,offset);
  offset=Math.min(offset,model.getByteCount() - 1);
  int row=offset / 16;
  int col=offset % 16;
  changeSelection(row,col,false,extend);
}

public void changeSelectionByOffset ( int offset , boolean extend ) { offset = Math . max ( 0 , offset ) ; offset = Math . min ( offset , model . getByteCount ( ) - 1 ) ; int row = offset / 16 ; int col = offset % 16 ; changeSelection ( row , col , false , extend ) ; }
changes the selection by an offset into the bytes being edited .
