gc.dispose();
    public void paintControl(PaintEvent pe)    {        Color cForeground = null;        Color cBackground = null;        if (this.isEnabled())        {            cForeground = Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);            cBackground = Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND);        }        else        {            cForeground = Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY);            cBackground = Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);        }        GC gc = pe.gc;        gc.setBackground(cBackground);        gc.setForeground(cForeground);        gc.setLineStyle(iLineStyle);        gc.setLineWidth(iLineWidth);        gc.fillRectangle(0, 0, this.getSize().x, this.getSize().y);        gc.drawLine(10, this.getSize().y / 2, this.getSize().x - 10, this.getSize().y / 2);        gc.dispose();    }