Help com JInternalFrame

Caros amigos do portaljava…
Mermão tow precisanu de ajuda fuderoso…
Sinceramente naum sei como pegar o texto da JTextArea que está dentro do JInternalframe que pór sua vez está dentro de um JDesktopPane.

[quote]import java.awt.Container;

import javax.swing.JInternalFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class InternalFrame extends JInternalFrame
{
public static byte i = 1, j = 1;

public InternalFrame()
{
	super("Doc " + i, true, true, true, true);
	
	Container cInterno = getContentPane();
	cInterno.add(new JScrollPane(new JTextArea()));
	
	setSize(300,300);
	setLocation(15 * j, 15 * j);
}

} [/quote]

por favor muito sério…

import java.awt.Container; 

import javax.swing.JInternalFrame; 
import javax.swing.JScrollPane; 
import javax.swing.JTextArea; 

public class InternalFrame extends JInternalFrame 
{ 
public static byte i = 1, j = 1; 
private JTextArea area;

public InternalFrame() 
{ 
super("Doc " + i, true, true, true, true); 
this.area = new JTextArea();
Container cInterno = getContentPane(); 
cInterno.add(new JScrollPane(area)); 

setSize(300,300); 
setLocation(15 * j, 15 * j); 
}

public JTextArea getJTextArea() {
    return this.area;
} 
} 

Alterei seu código para conter um referência para o JTextArea e crie um método para retorna-lo.

Faça o mesmo para quando for inserir este JInternalFrame no JDeskTopPane… blz?