Re: Applet in HTML

Discussion in 'Java' started by dhek bhun kho, Jul 25, 2003.

  1. Roger Irwin <>, Fri, 25 Jul 2003 13:10:20 +0000:

    > When using a HTML page as a holder for an applet (assuming the applet is
    > running in a savvy browser such as Mozilla), how can you set the HEIGHT
    > and WIDTH attibutes in the HTML command so that the applet fills the
    > whole page.
    >
    > Example, with swing2 demo:
    >
    > type = "application/x-java-applet;jpi-version=1.4.1_01"
    > CODE = SwingSet2Applet
    > ARCHIVE = "SwingSet2.jar"
    > WIDTH = 695
    > HEIGHT = 525
    > scriptable = false
    > pluginspage =http://java.sun.com/products/plugin/index.html#download">
    >
    > Here H & W are fixed, I would like to launch my applets to fill the
    > browser window. I have found availHeight/Width tags in javascript, but
    > how can they pass arguments?

    Simply specify:
    height=100% width=100% border=0

    > So I wonder, is it possible to
    >
    > a) Launch an applet from javascript

    Yes. Do some DOM magic.

    > b) Load a jar file directly!

    In what sense?

    Greets
    Bhun.
    dhek bhun kho, Jul 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Love

    applet vs. canvas in applet

    Rob Love, Jul 7, 2003, in forum: Java
    Replies:
    1
    Views:
    614
    Liu, Chunyen
    Jul 7, 2003
  2. webster
    Replies:
    0
    Views:
    847
    webster
    Jul 20, 2003
  3. Andrew Thompson
    Replies:
    0
    Views:
    408
    Andrew Thompson
    Aug 5, 2003
  4. Archana
    Replies:
    1
    Views:
    1,379
    Andrew Thompson
    Oct 25, 2004
  5. Gruupy
    Replies:
    0
    Views:
    292
    Gruupy
    Aug 15, 2006
Loading...

Share This Page