Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » jFreeChart(How to get jFreeChart running in e4)
jFreeChart [message #719181] Fri, 26 August 2011 09:39
Andreas Heertsch is currently offline Andreas Heertsch
Messages: 6
Registered: October 2010
Junior Member
I tried to get an jFreeChart tutorial example running in e4 (RCP).

But it isn't that easy as I thought.
I get
java.lang.ClassNotFoundException: org.eclipse.swt.events.PaintListener
if I run:

public class View extends ViewPart {
    @Inject //perhaps this statment is nonsens (?)
    public View(Composite parent) {
        createPartControl(parent);
    }
    public void createPartControl(Composite parent) {
        JFreeChart chart = createChart(createDataset());
        final ChartComposite frame = new ChartComposite(parent,SWT.NONE,chart,true);
    }
    private JFreeChart createChart(PieDataset dataset) {...}
    public PieDataset createDataset(){...}
}

Any idea or sample code?
Thanks!

[Updated on: Fri, 26 August 2011 09:51]

Report message to a moderator

Previous Topic:How to create a dropdown menu in toolbar?
Next Topic:Ant Script for eclipse e4 application
Goto Forum:
  


Current Time: Tue Sep 16 00:59:23 GMT 2014

Powered by FUDForum. Page generated in 0.01913 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software