Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Applet Resize based on Browser size?

Posted on 1997-04-04
1
Medium Priority
?
317 Views
Last Modified: 2006-11-17
Hi,

Can I resize an applet based on the frame size?

I would like my aplet read the dimentions of the frame the applet is executing in, and resize the applet based on the frame size.  This should be done on initialization and when a user changes frame dimentions later.

Thanks,

Alex.
0
Comment
Question by:akoifman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
heech earned 100 total points
ID: 1219419
Actually..you can't resize an applet within a browser.
I.e. once you do a <applet blah.... height=300 width=300>
etc, the applet size is fixed.  You can however pop up new
frames, which of course you can size however you want.
The windows will have a neat little message specifying this is
an unsecure applet window though.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question