Write an applet program for displaying 3 different sentences with 3 different colors

Write an applet program for displaying 3 different sentences with 3 different colors

Write an applet program for displaying 3 different sentences with 3 different colors

View Answers

January 2, 2013 at 10:14 PM

import java.applet.*;
import java.awt.*;
/*
<applet code= colr width=500 height=500>
</applet>
*/
public class colr extends Applet
{
    public void paint(Graphics g)
    {
        g.setColor(Color.RED);
        g.drawString("Hello ",0,10);
        g.setColor(Color.BLUE);
        g.drawString("I am Chirag Viradiya",20,20);
        g.setColor(Color.ORANGE);
        g.drawString("from Surat,Gujarat.",40,30);
        g.setColor(Color.BLACK);
        g.drawString("[email protected]",60,40);

    }
}

Ads









Related Tutorials/Questions & Answers:
Write an applet program for displaying 3 different sentences with 3 different colors
Write an applet program for displaying 3 different sentences with 3 different colors  Write an applet program for displaying 3 different sentences with 3 different colors
connect 3 frameset to other 3 different frameset in html
connect 3 frameset to other 3 different frameset in html  first display the 3 frames in one html page after login it will display 3 differnt frame
Advertisements
connect 3 frameset to other 3 different frameset in html
connect 3 frameset to other 3 different frameset in html  first display the 3 frames in one html page after login it will display 3 differnt frame
dojo grid from 3 different sources
dojo grid from 3 different sources  I'm new with dojo. I need to get data from 3 different database tables and diplay them on the browser (maybe..., movie title, desc,... table #3 fields: username, firstName, lastName, user img
java program of different shapes
java program of different shapes  pls help me to get the code of a java program of different shapes using menu
write those 3 questions (class)
write those 3 questions (class)  1) write a function minE which takes... an int k to minE and return the k smallest element.) 2) write a function rev which takes an array of integers and reverses it. 3) write a function isDistinct which
Displaying different portions of a page subsequently on the basis of action
Displaying different portions of a page subsequently on the basis of action  Suppose in Report.jsp there are two text fields From Date: and To Date: with js calender beside these and a SEARCH Button(When the page initially loads
different borders
the different colors. . Code description  The package we need to import... different borders       In this program we are going create a sheet  after that 
Here is a set of 18 different shades of one of the most favourite Choclate colors
; padding:5px 0px 5px 5px; } Here is a set of 18 different shades of one of the most favourite choclate colors rangeing from light choclate color to darker... Chocolate 3 #542A0C Chocolate 4 #69340F
Here is a set of 26 different shades of one of the most favourite Red colors
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Red colors rangeing from light Red color to darker Red color... #FF0000 Red 2 #F80000 Red 3 #F00000 Red 4
This is a set of 18 different shades of DarkSalmon colors covering lighter DarkSalmon color to darker DarkSalmon color.
:5px 0px 5px 5px; } This is a set of 18 different shades of DarkSalmon colors covering lighter DarkSalmon color to darker DarkSalmon color... #E9967A DarkSalmon 2 #EBA087 DarkSalmon 3 #EDAB95
Write an applet program to transfer the content of the text field into the component on clicking a button
Write an applet program to transfer the content of the text field into the component on clicking a button  Write an applet program to transfer the content of the text field into the component on clicking a button
This is a set of 26 different shades of brown colors covering light brown to darker brown.
:5px 0px 5px 5px; } This is a set of 26 different shades of brown colors... Brown 3 #79443B Brown 4 #964B00
3
Spring 3
Spring 3  Hi I want to know how to write code Spring 3 for registration and login pages with help of data bse.Please help me I am new to Spring
Different JRE
Different JRE  Java is platform independent. The why different JRE's there for differen operating systems
Here is a set of 26 different shades of one of the most favourite Orange colors rangeing from light Orange color to darker Orange color.
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Orange colors rangeing from light Orange color to darker Orange color... Orange 1 #FF7F00 Orange 2 #FFBF00 Orange 3
Here is a set of 26 different shades of one of the most favourite Pink colors rangeing from light Pink color to darker Pink color.
:5px 0px 5px 5px; } Here is a set of 26 different shades of one of the most favourite Pink colors rangeing from light Pink color to darker Pink color... #FFCBDB Pink 2 #F19CBB Pink 3 #FB607F
3 Java Programs for Beginners
3 Java Programs for Beginners  Write a program that prompts the user for 2 different integers, then prints out the numbers between the 2 integers (inclusive) and their squares and the sum of their squares. Write a program
Web 3
with different meanings to describe the evolution of web usage and interaction among
DIFFERENT PAGES FOR DIFFERENT USERS ACCORDING TO THEIR ROLE
DIFFERENT PAGES FOR DIFFERENT USERS ACCORDING TO THEIR ROLE  I HAVE A PROBLEM IN PHP CODING PLS HELP ME PROBLEM IS THAT I WANT DIFFERENT PAGES TO VIEW FOR DIFFERENT USERS WHEN THEY LOGIN ACCORDING TO THEIR ROLE IN DATABASE
What are the different types of AutoProxying?
What are the different types of AutoProxying?  Hi, What are the different types of AutoProxying? Thanks
Different between getRequestParameterMap() and getRequestParameterValuesMap()
Different between getRequestParameterMap() and getRequestParameterValuesMap()  What is the different between getRequestParameterMap() and getRequestParameterValuesMap
java program to take the backup of folders and copy the folder in different location without deleting the existing one
java program to take the backup of folders and copy the folder in different location without deleting the existing one  java program to take the backup of folders and copy the folder in different location without deleting
Applet program
Applet program  Write a java applet for the following case- The hotel Maharaja provides the facility to its customers to select any one room (from.... 100. All above charges are applicable per day basis. The applet will display
ftech different value corresponding different value
ftech different value corresponding different value  in my dropdown two options are their and i want when i select any option the corresponding value that go in the database should be different. for eg. in my drop down
Different tables present in MySQL
Different tables present in MySQL  What are the different tables present in MySQL? Which type of table is generated when we are creating a table...; Hi friends, Total 5 types of tables we can create 1. MyISAM 2. Heap 3
help me 3
help me 3  write aprogram in java using two dimentional array.Accept the two dimentional array from the user and perform addition and subtraction of these two arrays and display the result for each add and subtruct
selected radiobutton to display different page
selected radiobutton to display different page  there are three radio button are there , in that selected button to display different page. when submit it, using struts2 framework . plz help me to how write code
applet program
applet program  applet to simulates a traffic signal light with short delay between states
Updating rows who has same id with different values for each row from java program
Updating rows who has same id with different values for each row from java... balu 30 2 srinu 40 2 murali 30 3 lavanya 35 1...) with "lalitha" as a value for sname column from java program. Same for records with sid

Ads