954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can I make use of applets while developing web pages?

How can I make use of applets while developing web pages?

sham
Light Poster
40 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

by putting them on the pages?

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

extend JApplet and add some content usign javax.swing.*;

sorry bud, but you gotta be more specific

you can use an html tag but those are deprected and you should only use an tag...but oah wait there's one little hitch!!

internet explorer does not support the object tag in place of an applet, so in other words over 90% of web users wont be able to access your applets if you use the new tag, and are forced to use an older deprecated tag.

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

Since when does IE not support object tags for applets?

According to the MSDN HTML reference (which wouldn't include stuff IE doesn't support...) for object, object takes the following attribute:
"CODE code Sets or retrieves the URL of the file containing the compiled Java class. "

Of course this is deprecated and you should use codebase and archive instead to link to a jarfile.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

whoops, you are accidently right, i don't know why I got confused about this, I guess I must have had a brain fart.

For Internet Explorer only, use the object tag.
For the Mozilla family of browsers only, use the embed tag.

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

yup, it is Mozzy (and the Netsheep before it) that don't support object tag for applets (in contradiction to the W3 specs) :)
Not sure what the Fiery Fox does, but being a direct descendent of the Mozzy...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You