FileDocCategorySizeDatePackage
SimpleText.javaAPI DocExample583Mon Apr 05 10:24:06 BST 1999None

SimpleText

public class SimpleText extends Object

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

    Frame f = new ApplicationFrame("SimpleText v1.0") {
      public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D)g;
        
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("Serif", Font.PLAIN, 96);
        g2.setFont(font);

        g2.drawString("jade", 40, 120); 
      }
    };
    f.setVisible(true);