import java.awt.*;  
import java.awt.event.*;  
import javax.swing.*;   
import javax.swing.event.*;
  
public class ExemploJTextArea extends JFrame implements ActionListener 
{  
  		JTextArea ta_MeuTexto; 
  		
  		JPanel Painel_Central; 
  		JPanel Painel_Botoes;	

    	public ExemploJTextArea() 
    	{  
    		
    			getContentPane().setLayout(new BorderLayout());
    			getContentPane().add("Center", Painel_Central = new JPanel (new BorderLayout()));
    			Painel_Central.add("Center", ta_MeuTexto = new JTextArea(20, 50));
    			Painel_Central.add(Painel_Botoes = new JPanel(new FlowLayout(FlowLayout.CENTER)));
    			
    			setDefaultCloseOperation(EXIT_ON_CLOSE);
 				setTitle("OXNAR - CAIXA DE TEXTOS");
 
        		pack();
        		setVisible(true);  
        		setResizable(false);	
        		//////////////////////////////////////////////////
                
  				 				  
    	}  
  		public static void main(String[] args) 
  		{  
        		 new ExemploJTextArea();   	
        }  
        public void actionPerformed(ActionEvent e)
        {
		

        }		
} 