• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT-How to restrict Text from taking Vertically all space and hide other controls

 
Rajesh Prabhu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a SWT text and it have large contents. Because of its contents when I maximize window textbox will grow vertically and hides remaining controls.

Text contentText=new Text( GroupName, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP );

contentText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 1, 1 ) );



How to solve this?

Thanks
 
Aniruddha Singtalur
Greenhorn
Posts: 8
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
normally this should not happen, as your layout should take care of this, please share your whole code then i can check it and get back to you.
 
Campbell Ritchie
Marshal
Posts: 52590
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Have you tried a scroll pane around it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!