Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception when adding FlowChartListener (Read 3814 times)
Omasu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 26th, 2007
Exception when adding FlowChartListener
Oct 26th, 2007 at 7:03pm
Print Post  
Hi,
im using FlowChart an ShapeListBox in an Applet, everything works fine until i try to add a FlowChartListener, the console displays this message:
java.lang.NoClassDefFoundError: ShapeListBoxAppletEx$1

at ShapeListBoxAppletEx.init(ShapeListBoxAppletEx.java:58 )

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

the line 58 of the code is:
fc.addFlowChartListener(new FlowChartAdapter(){
public void itemCreated(ItemEvent e){

if(e.getItem() instanceof com.mindfusion.jdiagram.Box)

ShapeListBoxAppletEx.this.onBoxCreated(e);
}

public void itemDblClicked(ItemMouseEvent e){

}

});

I tried adding an action listener and it throws the same exception.
I have another applet that only uses FlowChart, i add a FlowChartListener and everything works fine.

What do you think would be the reason for this Exception??

Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when adding FlowChartListener
Reply #1 - Oct 27th, 2007 at 6:56am
Print Post  
Hi,

I assume ShapeListBoxAppletEx$1 is your anonymous class implementing the FlowChartListener interface. The Java compiler generates such "Type$N.class" files for each anonymous class defined in a "Type.java" source file. Most likely that exception means that JRE cannot find "ShapeListBoxAppletEx$1.class", so adding that file to the applet's ".jar" should fix the problem.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Omasu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 26th, 2007
Re: Exception when adding FlowChartListener
Reply #2 - Oct 29th, 2007 at 12:28pm
Print Post  
Hi,
I did what you say and it works!!, im a little ashamed because it was kind of obvious and it has nothing to do with JDiagram  Roll Eyes
Your product is great, it has a lot of functionallity and is very easy to use.
Thank you for your help!!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when adding FlowChartListener
Reply #3 - Oct 29th, 2007 at 12:45pm
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint