1. Consult the documentation for the class FontMetrics in the Java Class Library. How do you find the
a. Standard leading, or interline spacing, of the font?
b. Descent of the font?
c. Ascent of the font?
d. Height of the font
2. Consider a class MessagePanel that extends JPanel and has a string named message as a data field. Using the class FontMetrics mentioned in the previous exercise, define the method paintComponent to display message centered within the panel.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here