errArea.append(sbs);
                private void appendToErrArea()                {                    String sbs = sb.toString();                    if (log != null)                    {                        try                        {                            log.write(sbs);                            log.flush();                        }                        catch (IOException e)                        {                            System.out.println("An error occured writing "                                + "to log file.");                        }                    }                    sb.delete(0, sb.length());                    if (!errDia.isVisible() && isEnabled())                    {                        errDia.setVisible(true);                        errArea.append(sbs);                        Rectangle r = errArea.getBounds();                        errArea.scrollRectToVisible(new Rectangle(0, r.height,                            1, 1));                    }                    else                    {                        synchronized (sbb)                        {                            sbb.append(sbs);                        }                    }                }