Search found 6 matches

by jinrf
Thu Mar 29, 2007 5:12 am
Forum: JFreeChart
Topic: HELP: SWTException: an Invalid Access Error: how to solve?
Replies: 7
Views: 16407

At first, you wrote the original jfreechart's sample code. But, above exception is for SWT jfreechart (experiment). I cannot understand what is your correct code. If you use SWT jfreechart then the 'Invoke-later' method are not necessary. Can I see your code? and What is your eclipse version? In fa...
by jinrf
Thu Mar 29, 2007 4:59 am
Forum: JFreeChart
Topic: JFreechart in RCP: dynamic chart problems
Replies: 4
Views: 6359

Thank you so much I'm using experiment SWT. And my eclipse version is 3.2.2, I tried your code below use original jfreechart with SWT_AWT or experiment SWT jfreechart? and if you use experiment SWT jfreechart then what is your eclipse version? and for update SWT graphics using Display.getCurrent().a...
by jinrf
Wed Mar 28, 2007 3:45 pm
Forum: JFreeChart
Topic: JFreechart in RCP: dynamic chart problems
Replies: 4
Views: 6359

JFreechart in RCP: dynamic chart problems

HI, all! I read the topic about HOW TO USE JFREECHART IN RCP posted here, but seems all solution is create one CLASS, including some static member and method(like createPieChart(){...}...), but when it comes to dynamic chart, these kind of solution will face a problem: SWTException: Invalid Thread A...
by jinrf
Wed Mar 28, 2007 3:29 pm
Forum: JFreeChart
Topic: HELP: SWTException: an Invalid Access Error: how to solve?
Replies: 7
Views: 16407

Thx, bro! now it's running but still throw exceptions like this: Hi, try this. SwingUtilities.invokeLater(new Runnable() { public void run() { add(item); } }); Exception in thread "AWT-EventQueue-0" org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:3374) at org.e...
by jinrf
Wed Mar 28, 2007 4:13 am
Forum: JFreeChart
Topic: HELP: SWTException: an Invalid Access Error: how to solve?
Replies: 7
Views: 16407

HELP: SWTException: an Invalid Access Error: how to solve?

HI everyone, I'm facing a tough problem. I am using JFreechart in Eclipse RCP to write a system resource monitor. I implemented a class DatGenerator as follow: public class DataGenerator extends Timer implements ActionListener{ private static final long serialVersionUID = 3977867288743720505L; publi...
by jinrf
Thu Mar 22, 2007 10:32 am
Forum: JFreeChart
Topic: java.lang.NoClassDefFoundError in eclipse RCP
Replies: 11
Views: 33299

It's not in the plugin itself, it is in a plugin that this one is dependent on, although I have tried it with them directly in this plugin as well with the same result. I was faced with the same problem, and tried the methods above, but all didn't work out. BUT, finally i found a rather stupid way ...