This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How create 'zoom' in JPanel ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How create Watch "How create New topic
Author

How create 'zoom' in JPanel ?

Andrzej Sydor
Greenhorn

Joined: Apr 12, 2011
Posts: 8


I have image in JPanel ?

How create zoom on the image?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20049
    
  30

Welcome to the Ranch!

Zooming is actually little more than a visual trick. Just scale the image and cut off the parts you don't want in the zoomed in version.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: How create 'zoom' in JPanel ?
 
It's not a secret anymore!