Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic generating simple Arrow (Read 3568 times)
shahab
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 4th, 2008
generating simple Arrow
Mar 4th, 2008 at 6:13am
Print Post  
xes).I code like this:
Hello everyone,

I have a problem for generating Arrow in my FlowChart between nodes(2Bo
private void jButton1_actionPerformed(ActionEvent e)
{FlowChart fc = new FlowChart();
    com.mindfusion.jdiagram.Arrow a;
    a.setArrowHead(0);
    fc.setDefaultShape(Shape.fromId("//any shape//"));
    Box bx = fc.createBox(20, 20, 20, 20);
    Box bx1 = fc.createBox(50, 20, 20, 20);
    bx.setText("Shahab");
    fc.add(bx);
    fc.add(bx1);
    a = fc.createArrow(bx, bx1);
    this.jPanel1.add(fc);
    fc.setDocBounds(new Rectangle2D.Float(0,0,130,70));}

but these 2errors raise when I compile my application:

Error: class Crossings not found in method jButton1_actionPerformed(java.awt.event.ActionEvent)

Error: class ShapeVisitor not found in method jButton1_actionPerformed(java.awt.event.ActionEvent)

and I khnow that the root of these 2 is in line where
I define com.mindfusion.jdiagram.Arrow a;  ???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: generating simple Arrow
Reply #1 - Mar 4th, 2008 at 7:31am
Print Post  
It looks as if some .class files are missing from the archive. Have you ever edited the JDiagram.jar contents?
  
Back to top
 
IP Logged
 
shahab
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 4th, 2008
Re: generating simple Arrow
Reply #2 - Mar 5th, 2008 at 2:45am
Print Post  
Hi Stoyo,
Thanks for your attention.
I did not edit any .JAR file yet.and I have to say that
I'm using trial version of JDiagram.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: generating simple Arrow
Reply #3 - Mar 5th, 2008 at 7:00am
Print Post  
Hi,

Is that a runtime error or a compiler one? Could you post the exact message here?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint