Skip to main content

compile issues with the new version

1 reply [Last post]
dingfelder
Offline
Joined: 2010-09-12
Points: 0

Alex, I sent you an email... but feel free to answer it here instead if you see it here first.
If not I will post your response here.

I am trying the new JXLayer 3.0 jar that see you put on the website.

Prior to this I was successfully using the 2.x version.

After updating the jar, my code will no longer compile as it seems JXLayer is missing the setLockedCursor and setPainter methods and some classes are no longer in the jar such as Painter (moved to SwingX.jar?)

Can you shed any light on what is occurring? or do I just revert to the old stable version?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexfromsun
Offline
Joined: 2005-09-05
Points: 0

The version 3 is the major update of the JXLayer component,
and I had to change some API because some critical improvements
were not possible with the JXLayer 2.0

http://weblogs.java.net/blog/alexfromsun/archive/2008/06/the_new_jxlayer...

I am completely satisfied with the new API
and it is highly unlikely that it will ever be changed

I encourage you to use the new JXLayer for you application,
it will take a moment to fix the existing code

basically setPainter() was renamed to setUI()
and setLockedCursor() was moved to the LockedUI()

More details you'll find here:
http://weblogs.java.net/blog/alexfromsun/archive/2008/07/jxlayer_30_lock...

You may also be interested with the new features of JXLayer 3.0
that makes it possible to implement features like this one:

http://weblogs.java.net/blog/alexfromsun/archive/2008/06/jxlayer_30_mous...

Thanks
alexp