This exercise is to learn to write a String on a panel while centering it. To do so, we need to use the FontMetrics class to measure the exact height and width of the String
Exercise: Write a program that writes a String centered on the panel.
Download Code: Center Message
No comments:
Post a Comment