Google

Interview Questions Test your java skills Java API Reference Notifications Java Forums Java Examples Tell a Friend
Link to us Donate
Javagalaxy.com WWW
Subscribe Un Subscribe

Java Interview Questions on your mobileNew            

Java Interview Questions - JavaGalaxy.com

 Java Interview Questions

Back to Interview questions

AuthorMessage
JavaGalaxy

Question: If you need to display a String on the applet, what would you do?

Answer: drawString() is used to output a String to an applet. This method is included in the paint() of the Applet

thangamuthu


Comment title: Java Solutions


Please Send All Interview Questions
& java tips & tricks.


Posted: Fri Aug 01 00:39:51 CDT 2008

rahul


Comment title: nice question


nice answers


Posted: Fri Sep 19 02:14:57 CDT 2008

aniket


Comment title: same as the question


drawString() method is used to display any string on the applet face.
The string to draw should be used in
{
paint(Graphics g)
}
This vl instantiate an object from graphics and vl do ur work.

Dont forget to import import.java.Graphics.*;


n dont forget to giv me thanks**********************


Posted: Wed Sep 09 07:31:48 CDT 2009

Discuss in detail



Copyright © 2002 - 2010 JavaGalaxy.com,
All Rights Reserved Advertise| Feedback| Contact us| Terms of Use| Privacy Policy|

Help us to keep serving you better.
If you find any part of this site useful please support the site by linking to us