Che effettivamente stavo usando un TextArea...
che non ha il metodo grabText.
Però l'ho sostituito con un JTextArea, che è pure piu caruccio con questo bordino
text.setBorder(BorderFactory.createEtchedBorder( EtchedBorder.LOWERED ));
E funzia!
Grazie!