Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;

public class Main {
    public static void main(String[] argv) {
        JTextComponent c = new JTextArea();

        c.replaceSelection("replacement text");
    }
}