doc.addStyle(new StyledElement(i.next().toString() + " ", classNames));
doc.addStyle(new StyledElement(i.next() + " ", classNames));
    public synchronized void objectCreated(LemObjectCreationEvent event) {        StyledDocument doc = new StyledDocument();        //send the object created event to the table model.        model.objectCreated(event, counter);                doc.addStyle(new StyledElement(""+counter, oId));        doc.addStyle(new StyledElement(" Object Created, Object ID: ", text));        doc.addStyle(new StyledElement(event.getObjectId().toString(), oId));        doc.addStyle(new StyledElement(" Instance(s): " , text));        java.util.Collection className = new java.util.LinkedList();        className = event.getObjectClassName();        for( Iterator i = event.getObjectClassName().iterator(); i.hasNext(); ) {            doc.addStyle(new StyledElement(i.next().toString() + " ", classNames));        }        doc.addStyle(new StyledElement("\n", text));        addText(doc);    }