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

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 2 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
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, 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
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
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
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
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
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
Different JRE
Different JRE  Java is platform independent. The why different JRE's there for differen operating systems
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
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
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
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
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
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
C++ question 3
C++ question - add the two matrices and display the elements of resultant matrix.   Write a program to accept from user elements of two 2x3 matrices. Then add the two matrices and display the elements of resultant matrix
problem 3 = C#
C# program for grading system   Create a C# program for the following scenario: The grading system of a college is as follows: Marks : 80 -100 display "Distinction" 70 - 80 "Very Good 60 - 70 "Good" 50 - 60 "OK
Introduction to spring 3, Spring framework 3
Introduction to spring 3 In this section we will discuss about Spring 3 framework. Finally Spring 3 is here with new features and enhancements. The Spring..., instead it works as glue and helps you quickly integrate the different frameworks
Java Programming: Chapter 3 Exercises
by hand. Write a computer program that simulates the experiment. The program... the largest number of divisors, and how many divisors does it have? Write a program... of divisors. See the solution! Exercise 3.3: Write a program
Java Query divide frame into 3 rows and 3 columns
Java Query divide frame into 3 rows and 3 columns  how can we divide the frame into 3 rows and 3 columns
html page viewed on different os
html page viewed on different os  The colors on my page look different when viewed on a Mac and a PC
Overview of Web 3
If the user wants to go the news not the information, it will work in a different way
Maven 3 Tutorial
Maven 3 Tutorial - Learn Maven 3 Project Management tool In this section we are giving tutorials on the Maven 3 project management tool. Maven is famous... 3 system. This tutorial on Maven 3 will give you complete details of Maven 3
History of Web 3
a program. We are seeing that manifest in Web 2.0 and 3.0 will be a great extension
OOP with Java 3 - Java Beginners
OOP with Java 3  Write a Temperature class that has two instances... Fahrenheit, use the following formulas to write the two methods degreeC = 5(degreeF... the value, one to set the scale (F or C). and one to set both. Then write
Java: Method Exercises 3
Java: Method Exercises 3 Name: _________________________________ What is the output from this program... 2 3 4 5 6 7 8 9 10 11
Problem in Spring 3 MVC and Hibernate 3 Example tutorial source codes
Problem in Spring 3 MVC and Hibernate 3 Example tutorial source codes  I referred your tutorial "Spring 3 MVC and Hibernate 3 Example" and downloaded your source codes. I created a build.xml and built it using ant. And copied
Best Eclipse plugin for Maven 3
Best Eclipse plugin for Maven 3  Hi, I am trying to use the Eclipse... want to use the Maven 3 in the Eclipse. Can anyone tell me the best Eclipse plugin for Maven 3? Thanks   Hi, The best plugin is Maven Integration (m2e
Lost Using Swing Components(3)
Lost Using Swing Components(3)  Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message
size of different basic data types
size of different basic data types   Write a simple program to find the size of different basic data types in java
FLEX 3 Combobox - Development process
FLEX 3 Combobox  Hello, Love your site! Well, Im an old fart ,lol and just started tinkering with Adobe Flex. I have downloaded your combobox with text output lesson to get a better understanding, however I am still a little
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
Java Programming: Chapter 3 Quiz
Quiz Questions For Chapter 3 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 3 of this on-line Java textbook. You should be able... statements used in Java programs. Question 3: What is the main difference
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
 

 

 

DMCA.com