answersLogoWhite

0

import java.applet.Applet;

import java.awt.Graphics;

@SuppressWarnings("serial")

public class AppletTest extends Applet {

public void paint (Graphics g) {

g.drawString("WELCOME TO THE WORLD OF APPLETS", 100, 25);

setBackground(java.awt.Color.RED);

}

}

<HTML>

<HEAD>

<TITLE> AppletTest</TITLE>

<BODY>

<CENTER>

<APPLET CODE = "AppletTest.class" WIDTH = 400 HEIGHT = 100 </APPLET>

</CENTER>

</BODY>

</HEAD>

<HTML>

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

A rectangluar area that can contain a document program or message?

Dialog Box


What element of the word program window is used to display part of the document window?

tabs


Write a program in java to display a string message using Servlets?

i dont no string for servlate


When applets work on java ring?

client server program in java ring


How do you program a Litek KB2001 message board with included keyboard?

To program a Litek KB2001 message board using the included keyboard, first, power on the message board and ensure it is in programming mode. Use the keyboard to enter the desired message by typing the text you want to display, followed by pressing the &quot;Enter&quot; key. You can also access various functions like scrolling or adjusting display settings using specific key combinations indicated in the user manual. Once your message is set, save the changes, and exit programming mode to display your message.


Which element of the Word program window is used to display different parts of the document in the document window?

The split feature can be used to show different panes in the window, enabling you to see different parts of the document.


Which element of the word program window is used to display different parts of the document in the document windows?

The split feature can be used to show different panes in the window, enabling you to see different parts of the document.


What is hypothetical real-world example using simple selection in selection control structure?

A hypothetical example could be a program that determines whether a person is eligible to vote based on their age. If the person is 18 years old or above, the program will display a message saying they can vote; if they are below 18, the program will display a message saying they are not eligible to vote.


What is Content is too large?

Certain programs have a limit on the content they can contain or manipulate. When this limit is reached the program will display such a message. Notepad, which come bundled with Windows is such a program.


What is the display name of the software program and the name of the document on which you are working?

There are thousands of different software programs. The programs name should be on the top of the page.


Why applet tag is used in java program?

Applets are designed to be embedded within web browsers. The obvious advantage here is the ability to run a Java program directly in your web browser, without having to manually launch a completely separate program.


Which element of the word program window is used to display different parts of the documents in the document window?

The split feature can be used to show different panes in the window, enabling you to see different parts of the document.