473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Applet running in Netscape

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
3 2876
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
2
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
2
by: George Hester | last post by:
I have an applet which is a cube each face if which is a link. I have a floating <DIV> element which when the mouse is over the applet it pops up showing the text of all the links in the applet....
3
by: Roberto Gallo | last post by:
Hi again. Thank you for previews answers. I have another question.... How can I inform a Javascipt, that must submit my Applet's data, that this same Applet has produced the data in question?...
1
by: Roberto Gallo | last post by:
Hi, I have an applet running inside an html document and I need to read and to set some of html form's textfield and textarea input from my applet. How can I do that? Do I need a javascript? ...
2
by: Nick Wedd | last post by:
Here is a test page http://www.maproom.org/maps/historical/droysens/1886/testj.html which uses a Java applet to take a .DjVu format file and display the image which it encodes. The page is simple...
2
by: Richard Maher | last post by:
Hi, Can someone please tell me the strategy(ies) used by Java (the Security Manager or whatever) to determine if a given IP address conforms to the definition of the codebase from which an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.