Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes SWT-Chart example problem to execute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT-Chart example problem to execute" Watch "SWT-Chart example problem to execute" New topic
Author

SWT-Chart example problem to execute

Mic Tadlo
Greenhorn

Joined: Sep 07, 2012
Posts: 2
Hello,

I checked out SWT-Chart with the following command:


Then I imported org.swtchart.ext in my eclipse's workspace, but I am not able to run it, because I can not find the class which contain the main method.

How is it possible to run this example?

Thank you in advance.

Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Checkout org.swtchart.examples/, it contains lots of examples that can be run.
Or, write your own examples that demonstrate the usage of code you already have.


The quieter you are, the more you are able to hear.
Mic Tadlo
Greenhorn

Joined: Sep 07, 2012
Posts: 2
org.swtchart.examples are working, but they do not have any examples eg. how to zoom or select and therefore I tried to get org.swtchart.ext running.

Is there any reason why org.swtchart.ext does not contain any main method?
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

The source code is (probably) intended to be used as a library.
It's like when you develop separate component (of any kind), you certainly won't put main method inside your code; you can additionally provide some examples as separate classes, which is the case here, to demonstrate some of the functionalities your component provides.

The code looks very well documented, so I think it won't be too difficult to write an example on your own for the functionality you want to examin.

EDIT: There is an example provided in org.swtchart.examples.ext/ that you can further modify, but you should be familiar with plugin development.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT-Chart example problem to execute
 
Similar Threads
Using swt in applet
refreshing JFreeCharts
SWT Thread
SWT on any other IDE?
How to integrate SWT code with GEF example