java - How can I split the data over multiple lines in a JTextArea? -
How can I place each line of the host in the message body? I work with a How is it now: I resolve my work with the attached work. Thanks a lot JTextArea .
string host = InetAddress.getLocalHost (). GetHostName (). ToString (); Texto_recepcion.setText (host + textro_recpsyngate.text) (+) DPRECPCON.Attress (+ + "+ + + mnsjccbdo +" \ n ");
< Code> string host = InetAddress.getLocalHost (). GetHostName () .ToString (); texto_recepcion.append (host); // *** Use function append to solve the problem *** texto_recepcion.setText (texto_recepcion .getText () + dpRecepcion.getAddress () + "" + mensaje_recibido + "\ n");
Comments
Post a Comment