Applet running in Netscape

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff T.

    #1

    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
  • Neomorph

    #2
    Re: Applet running in Netscape

    On 28 Aug 2003 13:15:44 -0700, jeffting@hotmai l.com (Jeff T.) two-finger
    typed:
    [color=blue]
    >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[/color]


    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.

    Comment

    • Jeff T.

      #3
      Re: Applet running in Netscape

      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 <neomorph@nospa m.demon.co.uk> wrote in message news:<uqtskvomo 87c746fhfqeimkr rpj7aklb6l@4ax. com>...[color=blue]
      > On 28 Aug 2003 13:15:44 -0700, jeffting@hotmai l.com (Jeff T.) two-finger
      > typed:
      >[color=green]
      > >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[/color]
      >
      >
      > 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.[/color]

      Comment

      • Neomorph

        #4
        Re: Applet running in Netscape

        On 2 Sep 2003 09:57:23 -0700, jeffting@hotmai l.com (Jeff T.) two-finger
        typed:
        [color=blue]
        >Thanks for the response. However, that is what I have, I specify:
        >
        ><html>...
        ><applet class="..." width="100%" height="95%" ...[/color]

        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.
        [color=blue]
        >
        >But when I resize this html page, the applet within it does not
        >resize, in Netscape 7.x.[/color]

        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 ?
        [color=blue]
        >
        >Confused,
        >-Jeff
        >
        >
        >Neomorph <neomorph@nospa m.demon.co.uk> wrote in message news:<uqtskvomo 87c746fhfqeimkr rpj7aklb6l@4ax. com>...[color=green]
        >> On 28 Aug 2003 13:15:44 -0700, jeffting@hotmai l.com (Jeff T.) two-finger
        >> typed:
        >> [color=darkred]
        >> >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[/color]
        >>
        >>
        >> 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.[/color][/color]

        Comment

        Working...