Hi there,
I'm designing an applet that it is now almost funcional. It is a
client version of the program that requests a list of items, displayed
in strings, on an JTextField on the applet. My question is, when i
receive the text it displays everything on the same line, altought the
textfield is bigger than that. My question is, how can i break line on
the strings receive to produce a better output on the applet? Thanks
in advance for any help.
Regards
Pedro Pinto
Mark Space - 01 Apr 2007 19:40 GMT
> Hi there,
>
[quoted text clipped - 5 lines]
> the strings receive to produce a better output on the applet? Thanks
> in advance for any help.
I think the answer is pretty much "no." JTextField is designed to be a
single line of text entry and changing that would involve some horrible
hacks. Look at JTextArea if you need multi-line input.
Andrew Thompson - 02 Apr 2007 03:54 GMT
..
>...how can i break line on
>the strings receive to produce a better output on the applet?
Mark was correct that JTextArea would allow line breaks,
but it really seems this applet would do better with a JList
(purpose made for a list of items!).

Signature
Andrew Thompson
http://www.athompson.info/andrew/