ta.setCaretPosition(cc.getStringIndex(ta.getText(), useComp .isSelected(), offset - si.address));
ta.setCaretPosition(cc[TEXT_CC_TYPE[currentList]] .getStringIndex(ta.getText(), useComp.isSelected(), offset - si.address));
    public boolean gotoOffset(int offset)    {        if (gotoOffsetBlock(offset))        {            try            {                ta.setCaretPosition(cc.getStringIndex(ta.getText(), useComp                    .isSelected(), offset - si.address));            }            catch (IllegalArgumentException e)            {                e.printStackTrace();            }            return true;        }        else            return false;    }