Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 3 / Java Q & A Archive

resizing an applet
 Friday, 15-Jan-99 21:51:39

      209.77.157.251 writes:

      I've an applet that sits in the left HTML frame; users click results that show up in the
      Right frame.

      The Applet needs to occupy its whole HTML frame. I suspect that Javascript in the Header
      is the best way, adding the Applet with appropriate width and height.

      How might we manage resizing- it would be good for the applet to resize with its HTML
      frame.

      Any help will be tremendously appreciated.

      May


      May

Response
Re: resizing an applet
 Saturday, 16-Jan-99 12:26:23

      171.210.135.175 writes:

      I'm not really sure how you could go about dynamically resizing the size allotment
      of the applet within the HTML document. If that's possible, then you could perform
      something like getDocument() on the HTML document that the applet is on. My suggetion
      is to run the applet off of a frame that is separate from the browser. You could do
      that by creating a new class that extends the frame class, and performing all of the
      add(SomeComponent) with the frame instead of the applet.

      MikeD


Home / Java Q & A Archive Page 3 / Java Q & A Archive