• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT-Chart example problem to execute

 
Mic Tadlo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mic Tadlo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic