Free Online Courses for Software Developers - MrBool
× Please, log in to give us a feedback. Click here to login
×

You must be logged to download. Click here to login

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

Using Applet embedded in a Web Page

One does not require to be acquainted with Java to install applets on your web pages. There are numerous free applets accessible on the internet for more or less any reason. Majority of them can be personalized without programming.

An applet can be embedded into a webpage. More often than not the applet has quite a lot of settings that will permit you to customize it. For illustration, if you introduce an applet that will work as a menu, you can point towards which choices should be in the menu, and which pages should be loaded upon click on an option.

In view of the fact that Java is a real programming language there aren’t a lot of restrictions to it. Any program running on your computer could possibly have been made as an applet Worksheet, word processors, graphics programs, and still complete browsers could be prepared with Java. On the other hand, most applets used on web pages provide much less important purposes than the ones described.

Let us look at the explanation for the same- They require to be transmitting via the internet, and as a result can't take up merely any quantity of memory.

The template needs to be saved on the server and the HTML page also where the applet is embedded when as a developer you place an applet on the web page. On the other hand if the page is loaded by a guest the applet will be loaded and slots in on the page where you embedded it.

img1

Applets comprises of the file extension "class", the example of which would be "myapplet.class". A number of applets comprise of not just one class file but lot of them, and over and over again other files need to be there for the applet to execute or run such as JPG or GIF metaphors used by the applet.

Make certain to ensure the citations for the applet to observe if you have all files for it to run. You need to upload the essential and obligatory files to your server prior to embedding an applet on your web page.

Lets take a look at the below illustration or example to confirm how simple and easy it is to get the web page embedded with an applet.

<APPLET CODE="colors.class" WIDTH=500 HEIGHT=60 NAME="colorApp">
<APPLET CODE="colors.class" WIDTH=500 HEIGHT=60 NAME="colorApp">
</APPLET>
<FORM NAME=colorText>
<P>Enter new text for the flashing display:
<INPUT TYPE="text"
       NAME="textBox"
       LENGTH=50>
<P>Click the button to change the display:
<INPUT TYPE="button"
   VALUE="Change Text"
   onClick="document.colorApp.setString(document.colorText.textBox.value)">
</FORMgt;

img2

HTML tags applicable as per the applets:

-<Applet>

-<Param>

The <Applet> tag embeds the applet in your HTML page where as the <Param> tag is exploited to enter parameters for the applet.

The following characteristics or attributes can be set for the <Applet> tag:

Attribute Explanation Example
Code Name of class file Code="myapplet.class"
Width=n n=Width of applet Width=200
Height=n n=Height of applet Height=100
Codebase Library where the applet is stored. If the applet is in same directory as your page this can be omitted. Codebase="applets/"
Alt="Text" Text that will be shown in browsers where the ability to show applets has been turned off. alt="Menu Applet"
Name=Name Assigning a name to an applet can be used when applets should communicate with each other. Name="starter"
Align=, Left, Right, Top, Texttop, Middle, Absmiddle, Baseline, Bottom, Absbottom Justifies the applet according to the text and images surrounding it. A full explanation of the individual parameters is given here. Align=Right
Vspace=n Space over and under the applet Vspace=20
Hspace=n Space to the left and right of applet. Hspace=40

General syntax of the <Param> tag:

<Param Name=NameOfParameter Value="ValueOfParameter">

Every applet has diverse parameters that needs to be set.

Usual parameters for an applet would be:

  • colour utilized by the applet
  • font and font size to be bring into play on text in the applet
  • name of an image file to be included in the applet


I am a software developer from India with hands on experience on java, html for over 5 years.

What did you think of this post?
Services
[Close]
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 0,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!


> More info about MrBool Credits
[Close]
You must be logged to download.

Click here to login