Computer Science, asked by creativegauri2983, 10 months ago

Which method is used to display text on the applet?

Answers

Answered by Aashitiwari
1

Answer:

Draw string method is defined in graphic class, it is used to output a string in an applet.

Hope its help you!!

PLEASE MARK ME AS BRAINLIEST....

Answered by Jasleen0599
0

drawString()

drawString() method is used to display text on the applet.

Explanation:

  • DrawString(String, Font, Brush, Single, Single, StringFormat) draws the given text string at the given location using the given Brush and Font objects
  • while utilizing the formatting properties of the given StringFormat.
  • Draws the text specified by the string str using the drawString() function. The graphics context's current colour and font are used to draw the string.
  • The left end of the string is indicated by the value x. y is the baseline of the string's y-coordinate.

#SPJ3

Similar questions