Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA APPLET

Obtaining Font Information

Suppose you want to know about font attributes of the selected font. To do this you must first get the current font by calling getFont(), This method is defined by the Graphics class. It is shown here

Font getFont()

Here is an example using getFont() method






Previous

Next