Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Applet in HTML

Reply
Thread Tools

Re: Applet in HTML

 
 
dhek bhun kho
Guest
Posts: n/a
 
      07-25-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html Form looses Focus when applet is part of html-page Gruupy Javascript 0 08-15-2006 01:02 PM
Java Applet loading in Applet Viewer but not in HTML page Archana Java 1 10-24-2004 11:41 PM
Re: newbie: Join JApplet & Applet in one applet Andrew Thompson Java 0 08-05-2003 01:41 PM
Re: play wave files using java.applet.Applet webster Java 0 07-20-2003 01:51 PM
applet vs. canvas in applet Rob Love Java 1 07-07-2003 10:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57