• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT - Wrap label

 
Paul Speijers
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been trying to use a label, but the label text won't wrap. The text is just clipped off at the right of the label.
I simply instantiate it using:

Label label = new Label(composite, SWT.WRAP);

I'm using the label within a composite, which is in a flowlayout.

I'm using the SWT version included with Eclipse 3.0.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code works fine:



Care to show us your code?
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A wild guess: it may be a problem with the Layout and LayoutData you are using.

--
:alex |.::the_mindstorm::.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic