- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
java swing calendar
Read 292 times

Randa   Offline
YaBB Newbies
*
Posts: 3
I Love MindFusion!


   
     
 
java swing calendar
May 20th, 2018 at 12:03am
 
hello, first of all thnx for the JPlanner trial its a greate tool, but i had some errors while implementing the code, ill be more than thankful if u could help.
my errors are in the MainWindow in the customEvents.

errors:

1) content.add(calendar);
// The method add(Component) in the type Container is not applicable for the arguments (Calendar)

2) if (e.getElement() == CustomDrawElements.TimetableItem)
// Incompatible operand types CustomDrawElements and long

3) java.awt.Font font = e.getStyle().getFont();
// Type mismatch: cannot convert from com.mindfusion.drawing.Font to java.awt.Font

Thanks in advance:)
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1474
Gender: male
tech.support


   
     
 
Re: java swing calendar
Reply #1 - May 21st, 2018 at 6:21am
 
Hi,

That will happen if you use old code with version 2.0 of the control. See https://mindfusion.eu/Forum/YaBB.pl?num=1497361362 for what's changed in latest version.

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     

Randa   Offline
YaBB Newbies
*
Posts: 3
I Love MindFusion!


   
     
 
Re: java swing calendar
Reply #2 - May 22nd, 2018 at 12:26am
 
i downloaded the JPlanner trial, the latest version and copied the code. So it should be the new code with the version 2.0. any help?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1474
Gender: male
tech.support


   
     
 
Re: java swing calendar
Reply #3 - May 22nd, 2018 at 8:33am
 
Where have you copied code from?
 
 
 
IP Logged    
 
     

Randa   Offline
YaBB Newbies
*
Posts: 3
I Love MindFusion!


   
     
 
Re: java swing calendar
Reply #4 - May 22nd, 2018 at 1:53pm
 
from your website, i downloaded the jplanner trial. and copied the code from the package customEvents, mainwindow and basewindow
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1474
Gender: male
tech.support


   
     
 
Re: java swing calendar
Reply #5 - May 22nd, 2018 at 8:09pm
 
That sample compiles and runs successfully for me. Also latest version does not contain a com.mindfusion.drawing.Font class, so my guess is your project has older jplanner.jar version listed in its libraries path. Maybe you got the older jar downloaded along with another example from our blog / video channels. Replacing the older jar with one from latest distribution should let you compile latest sample code.
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print