JAVAEXT
1) FONT :- import java.awt.*; public class DisplayFont_1{ public static void main(String args[]){ Frame f = new Frame(); f.setVisible(true); f.setTitle("My Frame"); f.setSize(600,300); Graphics g = f.getGraphics(); g.setFont(new Font("Times New Roman", Font.PLAIN,20)); g.drawString("Times New Roman",50,50); g.setFont(new Font("Arial",Font.BOLD,20)); g.drawString("Arial",50,100); g.setFont(new Font("Caribri",Font.ITALIC,20)); g.drawString("Caribri",50,150); } } 2)GRAPHICS :- import java.awt.*; import javax.swing.*; public class DisplayGraphics_2 extends Canvas{ public void paint(Graphics g) { g.drawLine(50,50,180,50); g.drawRect(50, 100,100,50); g.drawOval(50,180,180, 100); } public static void main(String[] args) { DisplayGraphics_2 m=new DisplayGraphics_2(); ...