Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TextArea: controlling text wrap?

Gideon Goodwin
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am getting some JVM-dependant behavior which I can't explain. My client applet is using a TextArea to display a paragraph worth of text. When run on some target JVMs, this text is wrapped correctly to display in the actual size of the TextArea. On other JVMs, however, the text doesn't wrap correctly and extends past the actual right edge of the component, but eventually wraps on its own (no line break present in content string). Apparently this component is getting different default values on different platforms for some property which controls how text wraps, but I can't seem to find this property in the docs. I tried setColumns(x) but that didn't help. I am not using scrollbars on this component. Any ideas?
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!