SWT and ChartProgressListener Events

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
aznoohwee
Posts: 4
Joined: Fri Feb 15, 2008 4:58 pm

SWT and ChartProgressListener Events

Post by aznoohwee » Fri Feb 15, 2008 5:00 pm

I'm trying to listen to ChartProgressEvents in order to update a label with the crosshair value on a graph, but it seems that the event is not registering in SWT. Is there a proper way to handle events in swt that is different from awt? Thanks!

heprom
Posts: 91
Joined: Sat May 27, 2006 4:25 am
Location: Paris

Post by heprom » Sat Feb 16, 2008 9:35 am

Hum not ChartProgressEvents, you need to subclass ChartComposite and override the chartProgress method (just like the with ChartPanel class):

Code: Select all

    public void chartProgress(ChartProgressEvent event) {
        // does nothing - override if necessary
    }
HTH,
Henry

Locked