By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,441 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,441 IT Pros & Developers. It's quick & easy.

Applet running in Netscape

P: n/a
I have an applet that sizes itself to the size of the browser frame
that it is running in. On IE the applet resizes upon dragging the
frame divider.

I'm having a problem with getting this applet to resize itself when I
resize the html frame if it's in Netscape 7.x. Seems like the problem
is the lack of a refresh signal to the java applet from the page. Is
this a known bug, is there a workaround? Thanks.

-Jeff
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 28 Aug 2003 13:15:44 -0700, je******@hotmail.com (Jeff T.) two-finger
typed:
I have an applet that sizes itself to the size of the browser frame
that it is running in. On IE the applet resizes upon dragging the
frame divider.

I'm having a problem with getting this applet to resize itself when I
resize the html frame if it's in Netscape 7.x. Seems like the problem
is the lack of a refresh signal to the java applet from the page. Is
this a known bug, is there a workaround? Thanks.

-Jeff

The proper way to resize an Applet is by giving the WIDTH and HEIGHT
parameters of the APPLET tag percentages instead of pixels. When you change
the size of the browser window, the Applet container will resize and
automatically revalidate the components inside according to the
LayoutManager (and repaint() accordingly).

Otherwise, the APPLET should always be the size that the WIDTH and HEIGHT
give. Sizing objects in a browsers' page works top-down, not bottom up.

Cheers.
Jul 17 '05 #2

P: n/a
Thanks for the response. However, that is what I have, I specify:

<html>...
<applet class="..." width="100%" height="95%" ...

But when I resize this html page, the applet within it does not
resize, in Netscape 7.x.

Confused,
-Jeff
Neomorph <ne******@nospam.demon.co.uk> wrote in message news:<uq********************************@4ax.com>. ..
On 28 Aug 2003 13:15:44 -0700, je******@hotmail.com (Jeff T.) two-finger
typed:
I have an applet that sizes itself to the size of the browser frame
that it is running in. On IE the applet resizes upon dragging the
frame divider.

I'm having a problem with getting this applet to resize itself when I
resize the html frame if it's in Netscape 7.x. Seems like the problem
is the lack of a refresh signal to the java applet from the page. Is
this a known bug, is there a workaround? Thanks.

-Jeff

The proper way to resize an Applet is by giving the WIDTH and HEIGHT
parameters of the APPLET tag percentages instead of pixels. When you
change
the size of the browser window, the Applet container will resize and
automatically revalidate the components inside according to the
LayoutManager (and repaint() accordingly).

Otherwise, the APPLET should always be the size that the WIDTH and HEIGHT
give. Sizing objects in a browsers' page works top-down, not bottom up.

Cheers.

Jul 17 '05 #3

P: n/a
On 2 Sep 2003 09:57:23 -0700, je******@hotmail.com (Jeff T.) two-finger
typed:
Thanks for the response. However, that is what I have, I specify:

<html>...
<applet class="..." width="100%" height="95%" ...
Okay, that looks fine.
Make sure that the content actually resizes when the Windows resizes (i.e.
try to replace the Applet with a picture that has its size in percentages.

HTML coding can be difficult when using Tables and/or Frames, due to
strange behaviour if there are too many unknown fixed sizes.

But when I resize this html page, the applet within it does not
resize, in Netscape 7.x.
Questions you may want to answer for yourself:
- How do Mozilla, Opera and Internet Explorer respond ?
If Mozilla shows the same behavious, you may want to check their bug /
requested feature database... Netscape is derived from Mozilla.

- Are you using LayoutManagers or are you doing
your own painting/layouting ? If so, you need to check
the current size in paint/doLayout() (or similar)

For IE 4.0-6.0 without Plugin:
- Is this a JDK 1.1 compatible Applet ?

Confused,
-Jeff
Neomorph <ne******@nospam.demon.co.uk> wrote in message news:<uq********************************@4ax.com>. ..
On 28 Aug 2003 13:15:44 -0700, je******@hotmail.com (Jeff T.) two-finger
typed:
>I have an applet that sizes itself to the size of the browser frame
>that it is running in. On IE the applet resizes upon dragging the
>frame divider.
>
>I'm having a problem with getting this applet to resize itself when I
>resize the html frame if it's in Netscape 7.x. Seems like the problem
>is the lack of a refresh signal to the java applet from the page. Is
>this a known bug, is there a workaround? Thanks.
>
>-Jeff



The proper way to resize an Applet is by giving the WIDTH and HEIGHT
parameters of the APPLET tag percentages instead of pixels. When you
change
the size of the browser window, the Applet container will resize and
automatically revalidate the components inside according to the
LayoutManager (and repaint() accordingly).

Otherwise, the APPLET should always be the size that the WIDTH and HEIGHT
give. Sizing objects in a browsers' page works top-down, not bottom up.

Cheers.


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.