import java.awt.*;public class Test extends Frame{ public static void main (String args[]) { Test b = new Test(); } public Test() { super(); setSize(300,400); setVisible(true); } public void paint (Graphics g) { g.drawString ("Test", 100,200); }}