Example usage for javax.swing JTextArea show

List of usage examples for javax.swing JTextArea show

Introduction

In this page you can find the example usage for javax.swing JTextArea show.

Prototype

@Deprecated
public void show() 

Source Link

Usage

From source file:JTextAreaDemo.java

public JTextAreaDemo() {
    super("JTextAreaDemo");
    GraphicsEnvironment.getLocalGraphicsEnvironment();
    Font font = new Font("LucidaSans", Font.PLAIN, 40);
    JTextArea textArea = new JTextArea(davidMessage + andyMessage);
    textArea.setFont(font);/*ww  w .ja  v a2s  . c o  m*/
    this.getContentPane().add(textArea);
    textArea.show();
}