public void keyReleased(KeyEvent e)
    {
        String currText = getText();
        char key = e.getKeyChar();
        if (!(key == (char)KeyEvent.VK_ENTER) && !(key == (char)KeyEvent.VK_UNDEFINED)
                && !(key == (char)KeyEvent.VK_BACK_SPACE) && !(key == (char)KeyEvent.VK_DELETE)
                && !currText.equals(""))
        {
            String firstMatch = findFirstMatch(currText);
            if (firstMatch != null)
            {
                setText(firstMatch);
                select(_oldLength + 1, firstMatch.length());
            }
        }
    }