File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Making an applet zoom in and out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Making an applet zoom in and out" Watch "Making an applet zoom in and out" New topic
Author

Making an applet zoom in and out

Sridhar Venkataraman
Ranch Hand

Joined: May 22, 2006
Posts: 76
Hi there,

I have a JSP application that embeds Java applets in its pages.

I want to add functionality such that a user can zoom in and out of the applets (it displays mind maps currently) as desired. Is there a way to do this by adding an attribute or child tag to the <applet> tag?

How about javascript? As an alternative, it would be sufficient if the JSP page can be made to zoom in and out by pressing buttons located on the page.

Thank you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
You will need to implement this functionality yourself, meaning the drawing code needs to take the current zoom factor into account. There's nothing in the browser or the Java Plugin to help with this.


Ping & DNS - updated with new look and Ping home screen widget
Sridhar Venkataraman
Ranch Hand

Joined: May 22, 2006
Posts: 76
Thank you. I found a solution which involved loading my mind maps with a shockwave object that had the required functionality.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making an applet zoom in and out
 
Similar Threads
Swing Components with Struts
components extending beyond the area of the applet?
Zoom In a map : Help needed
How to use Applets in JSP?
Deploying applets with tomcat