para = para + (String)i.next() + ", ";
para = para + i.next() + ", ";
    public synchronized void cancelledEvent(LemEventCancellationEvent event){         StyledDocument doc = new StyledDocument();        //send the object created event to the table model.        model.cancelledEvent(event, counter);          doc.addStyle(new StyledElement(""+counter, oId));        doc.addStyle(new StyledElement(" Cancelled Event ,", text));        doc.addStyle(new StyledElement(" Object Id: ", text));          doc.addStyle(new StyledElement(event.getEventId().toString(), oId));        doc.addStyle(new StyledElement(" Event Type: ", text));        doc.addStyle(new StyledElement(event.getEventType(), classNames));        doc.addStyle(new StyledElement(" Event Id: ", text));        doc.addStyle(new StyledElement(event.getEventId().toString(), oId));        doc.addStyle(new StyledElement(" Parameters: ", text));        Collection parameters = event.getEventParameters();        String para = "";        for (Iterator i = parameters.iterator(); i.hasNext();){            para = para + (String)i.next() + ", ";        }        doc.addStyle(new StyledElement(para, values));            doc.addStyle(new StyledElement("\n", text));        addText(doc);    }