Explain the parameters of Font class constructor.
Java Font class:
Font(String name,int style,int size):
It creates a new Font from the specified name, style and point size.
name - the font name. This can be a logical font name or a font face name. A logical name must be either: Arial, Serif, SansSerif etc. If name is null, the name of the new Font is set to the name "Default". style - the style constant for the Font.It may be PLAIN, BOLD and/or ITALIC. If the style argument does not conform to one of the above styles then the style is set to PLAIN. size - the size of the Font
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.