Java Applet Font
When we start development of the website the first question comes into our mind that how we can change the font or color of our text. Here with I have explained Java Applet Font class to change the font of the selected text as per your requirement. To set the font in the applet you need to use the setFont() method available in Graphics object.
Interested in Learning Java Programming Language but getting difficult to learn then you can check out
<applet code=”Applet6.class” height=”300″ width=”300″>
public class Applet6 extends Applet
public void paint(Graphics g)
Font mycustomefont = new Font(“Arial”, Font.BOLD,20);
g.drawString(“This is Sample Text using Arial Font and Bold”, 10, 50);