Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/12/2004, 12:55
maru539
 
Fecha de Ingreso: enero-2004
Mensajes: 57
Antigüedad: 20 años, 3 meses
Puntos: 0
Yo lo hice

Hola, anoche al final conseguí hacerlo. Yo lo hice así, por si a alguien le interesa:

Código:
		public void actionPerformed(ActionEvent e){
	    	Component b = (Component)e.getSource();
			if(b==b1){
				String texto1 = t1.getText();
				String texto2 = t2.getText();
				String texto3 = t3.getText();
				String texto = t1.getText()+"\n"+t2.getText()+"\n"+t3.getText();
				area.insertText(texto,1);
			}
			if(b==b2) area.setText("");
		}
Gracias por tu ayuda