Like This....
......Code.........
package abc;
import javax.swing.*;
import java.awt.*;
public class TextTry extends JFrame{
JTextArea textArea=new JTextArea();
JLabel label=new JLabel();
JLabel label1=new JLabel();
public TextTry() {
label.setText("...................................");
textArea.setText("Text Editing Only allowed here");
label1.setText("...................................");
Box box=Box.createVerticalBox();
box.add(label);
box.add(Box.createVerticalStrut(15));
box.add(textArea);
box.add(Box.createVerticalStrut(15));
box.add(label1);
this.getContentPane().setBackground(Color.WHITE);
this.getContentPane().add(box);
this.setSize(new Dimension(250,250));
this.setVisible(true);
}
public static void main(
String args[]){
TextTry textTry=new TextTry();
}
}