[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Graphics Context doesn't work!

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