Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions Write an applet program for displaying 3 different sentences with 3 different colors
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Srinivas Kumar
Write an applet program for displaying 3 different sentences with 3 different colors
1 Answer(s)      3 years and 4 months ago
Posted in : Java Interview Questions


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


Advertisement
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("viradiyachirag@hotmail.com",60,40);

    }
}


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
links with different colors.
links with different colors.  How can I have two sets of links with different colors
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
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
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi, i have drawn a simple table using swings and now i want to mark diffent colors for each row..............my target is to have each color for each row.......first row
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
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi frends, Actually yesterday i had a question that, how can i mark colors to my rows in the table using swings.............one of my frend posted the solution also
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
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
3
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
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
Web 3
with different meanings to describe the evolution of web usage and interaction among
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
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
JSP Tutorials - Page 3
JSP Tutorials - Page 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
3 queries on java class
3 queries on java class  Hey. I need to do 3 queries on same class ( JAVA) One is to populate the combobox, the another one to populate tje jlist and the last one to use on button to open a file from database (BLOB) Can some
Entity Relationship Diagram 3
Entity Relationship Diagram 3  Task 3 Activities: Identify all entities and attributes from the given scenario. Draw entity relationship diagram... no, a name, an age, and a degree program(e.g BS, MSC). ? Each professor must
Different JRE
Different JRE  Java is platform independent. The why different JRE's there for differen operating systems
Transaction in last 3 months
Transaction in last 3 months  I have a project in which i have to calculate amount submitted through transactions in last three months. I have... submitted. What query can i use to get all the transactions in past 3 months starting
@configuration annotation in Spring 3
@configuration annotation in Spring 3  doesn't make code tight coupling..? if we keep that in IOC in XML form, its deployment free for some kind of change management right?.   Please visit the following link: http
Set Different Color to different row in Java Program
Java Set Different Color to different row In this section, you will learn how to set different color to table row using java swing.For this purpose, we have.... This class provides the method setBackground() which allow us to set different
an overview of ejb 3
An overview of EJB 3. As we know that EJB architecture has failed in keeping the promise of increased productivity whereas EJB 3.0 has succeeded in doing so. It has reduced the complexity for the developers. It has succeeded in reducing
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
Advertisements
 

 

 

DMCA.com