Skip to main content

Magnifying lens....

3 replies [Last post]
tdanecito
Offline
Joined: 2005-10-10
Points: 0

Hi All,

I have been looking for a magnifying lens example and have found one only that I liked but it was so old the source could not be located. JavaFX has a nice script example (round glass) but that does not apply for my Swing app. There also was one from the swing hacks book but it does not work well when a jframe has a scrollpane in it becuase the demagnifying class uses the mouse move events for the Jfame and JFrame does not generate them.

So I need an example where I move a magnifying glass (round if possible) over a JFrame and it magnifies whatever I pass over.

Can someone please direct me to a possible solution?

Thanks,

-Tony

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

Hello Tony

Please look at the ZoomUI by Piet Blok
http://www.pbjar.org/blogs/jxlayer/jxlayer40/

Thanks
alexp

tdanecito
Offline
Joined: 2005-10-10
Points: 0

Thanks alexp! I will take a close look at this tonight.

Do you know if JXLayer is the JLayer in Java 7?

Best Regards,

Tony Anecito

Founder,

MyUniPortal

http://www.myuniportal.com

tdanecito
Offline
Joined: 2005-10-10
Points: 0

Hi alexp,

Since it looks like the swing labs and JXLayer projects were shelved years ago do you know where I can get version 4 of JXLayer in a jar and the latest source to MagnifyUI?

Thanks,

-Tony