I have a drawString() method in my paintComponent method. Is there a way to make the text drawn by the drawString() bold? Also, is there a way to make the text bigger? I would like to avoid using JLabels, unless it is absolutely necessary.
I have a drawString() method in my paintComponent method. Is there a way to
Share
According to documentation of
drawString:Indeed,
Graphicsclass has thesetFont(Font font)method available: