• 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

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Have you tried a scroll pane around it?
reply
    Bookmark Topic Watch Topic
  • New Topic