Java Programming quiz, level Advanced, question 7
| Question: | To find how wide a character string will appear in your AWT window, use: |
| Answer 1: | the stringWidth method on a FontMetrics object This was the CORRECT answer |
| Answer 2: | the getLength method on a FontMetrics object |
| Answer 3: | multiple calls to the charWidth method on a FontMetrics object |
| Answer 4: | the getWidth method on a FontMetrics object |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|