How to Resize an Applet?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrsjrs
    New Member
    • Sep 2006
    • 24

    How to Resize an Applet?

    Some Java Applets have a very small output on the screen.
    There are many ways to enlarge text and images on a webpage,
    but none of these methods affect a java applet size.
    Is there any way to resize an applet on a webpage for easier viewing?
    Most text/image resize programs are written in Javascript.
    I have searched everywhere without success.
    Is this simply impossible to do?
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by jrsjrs
    Some Java Applets have a very small output on the screen.
    There are many ways to enlarge text and images on a webpage,
    but none of these methods affect a java applet size.
    Is there any way to resize an applet on a webpage for easier viewing?
    Most text/image resize programs are written in Javascript.
    I have searched everywhere without success.
    Is this simply impossible to do?
    Im not sure, but try this,

    If calling methods from a class in java by javascript is possible,(and can pass some parameters)

    Make a method with parameters use to resize the applet. (parameter dependent)

    Call that method from javascript.

    make sure all near fields(text, box, etc) expands/reallocate before calling that method. Or else, they will be at the back of that applet.....

    OR, have a look at Passing parameters from html to java

    Hope this helps,
    sukatoa

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      First hit when I searched: http://www.rgagnon.com/javadetails/java-0172.html

      Comment

      Working...