Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception when doing Canvas.add() 11th time (Read 1925 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Exception when doing Canvas.add() 11th time
Jul 3rd, 2007 at 7:01am
Print Post  
Hi,

I am now using the source code by directly adding reference to it. On doing Canvas.add() 11th time, I get this exception:

Exception in thread "AWT-EventQueue-1" java.lang.ClassCastException: java.lang.Double
at java.awt.Font.initFromMap(Unknown Source)
at java.awt.Font.<init>(Unknown Source)
at com.mindfusion.jdiagram.XmlReader.createFont(XmlReader.java:1009)
at com.mindfusion.jdiagram.FlowChart.drawFlowChart(FlowChart.java:2429)
at com.mindfusion.jdiagram.FlowChart.paintComponent(FlowChart.java:2335)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


When I used the trial version I noticed that on doing Flowhart.add() for the 11th time, the canvas gets a red watermark 'JDiagram Evaluation Version'. I think this problem is linked to that.


Is there some setting I make before I can use the source code directly?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when doing Canvas.add() 11th time
Reply #1 - Jul 3rd, 2007 at 8:42am
Print Post  
Hi,

Edit the LicenseInfo.java to return true from the first method.

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