Here in the topic, Java Program to Demo Fonts Class In APPLET.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
//----Program to Demo Fonts Class In APPLET. import java.awt.*; import java.applet.*; /* <APPLET CODE="Pandu84" WIDTH="300" HEIGHT="200"> </APPLET> */ public class Pandu84 extends Applet { Font f = new Font("SansSerif", Font.BOLD | Font.ITALIC, 28); public void paint (Graphics g) { g.setColor(Color.blue); g.setFont(f); g.drawString("This is my Font Setting.",50,50); } } |
The Output of the Java Program to Demo Fonts Class In APPLET.
Comment below if you have queries related to the above topic, Java Program to Demo Fonts Class In APPLET.