FileDocCategorySizeDatePackage
JTextAreaDemo.javaAPI DocExample893Sun Jan 07 16:11:36 GMT 2001None

JTextAreaDemo

public class JTextAreaDemo extends JFrame

Fields Summary
String
davidMessage
String
andyMessage
Constructors Summary
public JTextAreaDemo()


    
    super("JTextAreaDemo");
    GraphicsEnvironment.getLocalGraphicsEnvironment();
    Font font = new Font("LucidaSans", Font.PLAIN, 40);
    JTextArea textArea = new JTextArea(davidMessage + andyMessage);
    textArea.setFont(font);
    this.getContentPane().add(textArea);
    textArea.show();
  
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame frame = new JTextAreaDemo();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {System.exit(0);}
    });

    frame.pack();
    frame.setVisible(true);