int xCords = Math.max(0, evt.getX()); // prevent negative X coordinates
int res = (xCords / av.getCharWidth())
+ av.getRanges().getStartRes();
int xCords = Math.max(0, evt.getX()); // prevent negative X coordinates
int res = (xCords / av.getCharWidth())
+ av.getRanges().getStartRes();