FileDocCategorySizeDatePackage
HelloJava1.javaAPI DocExample393Mon May 01 14:41:38 BST 2000None

HelloJava1

public class HelloJava1 extends JComponent

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    javax.swing.JFrame f = new javax.swing.JFrame("HelloJava1");
    f.setSize(300, 300);
    f.getContentPane().add(new HelloJava1(  ));
    f.setVisible(true);
  
public voidpaintComponent(java.awt.Graphics g)

    g.drawString("Hello, Java!", 125, 95);