Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT Text word wrap with GridLayout and horizontal grab

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

the automatic word wrapping starts to drive me nuts ...

What I have is a SWT Text control that I embed into a GridLayout, setting the grab property of the LayoutData to true, because I want the text field to adjust it's width to the available leftover space.

When I start the program with text in it, the Text control will have the width of the longest line it contains. No wrapping whatsoever.


Any ideas ??

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic