• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TextArea: controlling text wrap?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic