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 JTextArea .
string host = InetAddress.getLocalHost (). GetHostName (). ToString (); Texto_recepcion.setText (host + textro_recpsyngate.text) (+) DPRECPCON.Attress (+ + "+ + + mnsjccbdo +" \ n "); How is it now:
I resolve my work with the attached work.
< 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"); Thanks a lot
Comments
Post a Comment