Glyph glyph = getGlyphById(id);
Rectangle rect = null;
    public void setFocusGlyph (int id)    {        Glyph glyph = getGlyphById(id);        if (glyph != null) {            setFocusGlyph(glyph);        } else {            logger.warning ("Glyph " + id + " not found.");        }    }