Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic java swing calendar (Read 7130 times)
Randa
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2018
java swing calendar
May 19th, 2018 at 11:03pm
Print Post  
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:)
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: java swing calendar
Reply #1 - May 21st, 2018 at 5:21am
Print Post  
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
  
Back to top
 
IP Logged
 
Randa
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2018
Re: java swing calendar
Reply #2 - May 21st, 2018 at 11:26pm
Print Post  
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?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: java swing calendar
Reply #3 - May 22nd, 2018 at 7:33am
Print Post  
Where have you copied code from?
  
Back to top
 
IP Logged
 
Randa
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2018
Re: java swing calendar
Reply #4 - May 22nd, 2018 at 12:53pm
Print Post  
from your website, i downloaded the jplanner trial. and copied the code from the package customEvents, mainwindow and basewindow
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: java swing calendar
Reply #5 - May 22nd, 2018 at 7:09pm
Print Post  
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.
  
Back to top
 
IP Logged
 
samaravasthi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Mar 18th, 2019
Re: java swing calendar
Reply #6 - Mar 18th, 2019 at 5:13am
Print Post  
How to use jdatepicker to display calendar component.
java programming
« Last Edit: Mar 19th, 2019 at 4:28am by samaravasthi »  
Back to top
 
IP Logged
 
Iva_P
YaBB Moderator
*****
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: java swing calendar
Reply #7 - Mar 18th, 2019 at 5:24pm
Print Post  
Hi,
we've created a demo application that renders a DateTime picker. You can download it from this link:

https://mindfusion.eu/samples/java/scheduler/DateTimePicker.zip






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