Thanks 4 reply
Originally posted by jignesh soni:
Wile we acess any website, web server renders static web page. On this web page we see advertisement. If we click on that ad window we go to linked page. This gui is, say, applet or swing gui. This gui requires java coding to be inserted in static page. How does an HTML page take java coding. Is there any specific tag defined in HTML ? if not then how is this kind of gui inserted in static HTML page ?
Thanks 4 reply
Thats what we call as APPLETs in java. which uses <APPLET> tag. Inside that tag you have to provide your class file
For further study use this link
[ December 16, 2007: Message edited by: Balasubramanian Chandrasekaran ]
I was going through an example (public class SimpleGUI) using Swing, in Head First Java book. In that example, Applet was never used. So you mean to say that if I want to display that class in web page, then I can extend Applet (public class SimpleGUI extends Applet) and I can use it in web page. Otherwise, I can use it in a standlone application. Right ?
Pls correct, if I my understanding is not right.
Another question, what makes AWT component heavy weight and Swing component light weight ?
What makes AWT heavy weight component an Swing light weight component
This really has nothing to do with the original question. In the future please start a new topic for a new question.
This particular question has been asked numerous times; a quick search using the old posts using the "Search" link at the top of the page finds numerous discussions.