[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Graphics Context doesn't work!
|
- From: Johannes Langer <Langerjo@xxxxxxxxxx>
- Date: Fri, 08 Jul 2005 12:12:21 +0200
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Hi everyone,
i have a problem with the Graphics Context. It doesn't draw:-), This
means I created a multipageeditor and i only want to draw something on
the composite of one of it's pages like this:
private void createInformationEditorPage()
{
Composite composite = new Composite(getContainer(), SWT.NONE);
GC gc = new GC(composite);
gc.drawLine(0,0,200,200);
composite.redraw();
gc.dispose();
composite.update();
int index = addPage(composite);
setPageText(index, "Properties");
}
But it doesn't work:-(. Anybody knows why?
Thanks in advance
Johannes