Skip to main content

compile issues with the new version

1 reply [Last post]
Joined: 2010-09-12

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.
Joined: 2005-09-05

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

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:

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