pos = cc.getStringLength(ta.getText(), useComp.isSelected(), 0, ta .getCaretPosition());
pos = cc[TEXT_CC_TYPE[currentList]].getStringLength(ta.getText(), useComp.isSelected(), 0, ta.getCaretPosition());
    private void updateCurrPos()    {        int pos = -1;        try        {            pos = cc.getStringLength(ta.getText(), useComp.isSelected(), 0, ta                .getCaretPosition());        }        catch (StringIndexOutOfBoundsException e)        {}        if (pos < 0)            return;        int posAdd = si.address + pos;        currPosLabel.setText("Current Position: " + pos + " | 0x"            + Integer.toHexString(posAdd) + " | $"            + Integer.toHexString(toSnesPointer(posAdd)));    }