This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes SWT Text word wrap with GridLayout and horizontal grab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT Text word wrap with GridLayout and horizontal grab" Watch "SWT Text word wrap with GridLayout and horizontal grab" New topic
Author

SWT Text word wrap with GridLayout and horizontal grab

Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT Text word wrap with GridLayout and horizontal grab
 
Similar Threads
how to detect a paragraph when reading text file in java.
Custom List
Setting number of items to show in SWT List
Use of pre tag avoids word wrapping
How to stop text continuing horizontally in a textarea?