why my tooltip doesn't show?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
zlj578
Posts: 1
Joined: Thu Mar 31, 2011 10:57 am
antibot: No, of course not.

why my tooltip doesn't show?

Post by zlj578 » Thu Mar 31, 2011 11:22 am

hi everyone,
I draw a chart with tooltip.But when i add it to a RCP,the tooltip doesn't show?
so did anyone know this problem ? Here is the code.

Code: Select all

	public void createPartControl(Composite parent) {
		composite = new Composite(parent, SWT.NO_BACKGROUND|SWT.EMBEDDED);
		DrawChart myChart = new DrawChart();
		chartFrame = SWT_AWT.new_Frame(composite);
		chartFrame.add(myChart.chartPanel);// the chart is in the chartPanel
		chartFrame.pack();
		chartFrame.setVisible(true);
		
	}
thanks.

Locked