Current location - Recipe Complete Network - Complete cookbook of home-style dishes - In Java. How to modify the font of your own menu?
In Java. How to modify the font of your own menu?
use

SetFont (font (string name,

Int style,

int size));

The first parameter is the font, the second is the format, such as bold and italic, and the third is the font size.

For example:

SetFont (new font ("Microsoft Yahei", font. Bold,14));