To be certain that a vertical series of Strings drawn with object g has enough room to

Question:

To be certain that a vertical series of Strings drawn with object g has enough room to appear on a JPanel, which of the following expressions should you use for the vertical coordinate?

a. Y += g.getFontMetrics().getHeight();

b. Y += g.getFontMetrics().getLeading();

c. G.getFontMetrics().getAscent();

d. Y += g.getFontMetrics().getDescent();

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: